Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
languagetext
themeMidnight
firstline1
titleExample.yaml
linenumberstrue
---
- project:
    name: dcaegen2-utils
    project-name: 'dcaegen2-utils'
    python-version: python3
    subproject:
      - 'dcaeapplib':
          tox-dir: dcaeapplib/
          tox-envs: ''
      - 'onap-dcae-dbs-docker-client':
          tox-dir: onap-dcae-dbs-docker-client/
          tox-envs: ''
      - 'onap-dcae-dcaepolicy-lib':
          tox-dir: onap-dcae-dcaepolicy-lib/
          tox-envs: ''
      - 'python-discovery-client':
          tox-dir: python-discovery-client/
          tox-envs: ''
      - 'python-dockering':
          tox-dir: python-dockering/
          tox-envs: ''

    jobs:
      - gerrit-maven-clm
      - '{project-name}-{stream}-verify-java'
      - '{project-name}-{stream}-merge-java'
      - '{project-name}-{stream}-release-version-java-daily'
      - '{project-name}-{subproject}-python-staging-{stream}'
      - '{project-name}-{subproject}-python-release-{stream}'

    project: 'dcaegen2/utils'
    stream:
      - 'master':
          branch: 'master'
    mvn-settings: 'dcaegen2-utils-settings'
    # due to a strange macro / variable translation problem this needs
    # to be passed as a string block to properly get the properties
    # correctly defined in the job
    maven-deploy-properties: |
      deployAtEnd=true
    files: '**'
    archive-artifacts: ''
    build-node: 'ubuntu1604-docker-8c-8g'


Projects can leverage this set of templates when they are a python project that needs to upload python packages to a PyPi repository.

...

Here is a concrete example of how to set up pypi jobs for a project with subprojects using dcaegen2/utils.

...

Code Block
languagetext
themeMidnight
firstline1
titleExample.yaml
linenumberstrue
---

...


- project:

...


    name: dcaegen2-utils

...


    project-name: 'dcaegen2-utils'

...


    python-version:

...

    subproject:

      - 'dcaeapplib':

          tox-dir: dcaeapplib/

          tox-envs: ''

...

 python3
    project: 'dcaegen2/utils'
    stream:
      - 'master':
          branch: 'master'
    mvn-settings: 'dcaegen2-utils-settings'
    # due to a strange macro / variable translation problem this needs
    # to be passed as a string block to properly get the properties
    # correctly defined in the job
    maven-deploy-properties: |
      deployAtEnd=true
    files: '**'
    archive-artifacts: ''
    subproject:
      - 'dcaeapplib':
          tox-dir: dcaeapplib/
          tox-envs: ''
      - 'onap-dcae-dbs-docker-client':

...


          tox-dir: onap-dcae-dbs-docker-client/

...


          tox-envs: ''

...


      - 'onap-dcae-dcaepolicy-lib':

...


          tox-dir: onap-dcae-dcaepolicy-lib/

...


          tox-envs: ''

...


      - 'python-discovery-client':

...


          tox-dir: python-discovery-client/

...


          tox-envs: ''

...


      - 'python-dockering':

...


          tox-dir: python-dockering/

...


          tox-envs: ''

...

    jobs:

      - gerrit-maven-clm

...



    jobs:
      - '{project-name}-{

...

      - '{project-name}-{stream}-merge-java'

      - '{project-name}-{stream}-release-version-java-daily'

...

subproject}-python-staging-{stream}'

...


      - '{project-name}-{subproject}-python-release-{stream}'

...

    project: 'dcaegen2/utils'

    stream:

      - 'master':

          branch: 'master'

    mvn-settings: 'dcaegen2-utils-settings'

    # due to a strange macro / variable translation problem this needs

    # to be passed as a string block to properly get the properties

    # correctly defined in the job

    maven-deploy-properties: |

      deployAtEnd=true

    files: '**'

    archive-artifacts: ''

...



   
    build-node: 'ubuntu1604-docker-8c-8g'

...




...



Info

Filter by label (Content by label)
showLabelsfalse
max5
spacesDW
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("python","pypi","jjb") and type = "page" and space = "DW"
labelsPyPi Python JJB

...