X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-python-jobs.yaml;h=61bb5d2d77f904e3a2926e2a70012787281e9a30;hb=28d1d6347c9bc9c6e5fd59989cb365532e92d5dd;hp=f95f575aefa9449474045428361c8eef3d35d367;hpb=a97f48ea67f1bd469d25ae816d7ba66786ecd68a;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index f95f575a..61bb5d2d 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -1,23 +1,4 @@ --- -- job-group: - name: '{project-name}-python-jobs' - - # This job group contains all the recommended jobs that should be deployed - # for any project ci that is using Gerrit. - - jobs: - - gerrit-python-xc-clm - - gerrit-tox-verify - -- job-group: - name: '{project-name}-github-python-jobs' - - # This job group contains all the recommended jobs that should be deployed - # for any project ci that is using GitHub. - - jobs: - - github-python-xc-clm - - github-tox-verify ########## # Macros # @@ -68,7 +49,6 @@ project: '{project}' branch: '{branch}' stream: '{stream}' - lftools-version: '{lftools-version}' wrappers: - lf-infra-wrappers: @@ -92,12 +72,16 @@ branch: master build-days-to-keep: 30 # 30 days for troubleshooting purposes build-timeout: 60 + disable-job: false git-url: '$GIT_URL/$PROJECT' + github-url: 'https://github.com' java-version: openjdk8 nexus-iq-cli-version: 1.44.0-01 - staging-profile-id: '' # Unused in this job + nexus-iq-namespace: '' # Recommend a trailing dash when set. Example: odl- stream: master submodule-recursive: true + submodule-timeout: 10 + submodule-disable: false gerrit_trigger_file_paths: - compare-type: ANT @@ -111,12 +95,13 @@ # Job Configuration # ##################### + disabled: '{disable-job}' + parameters: - lf-infra-parameters: project: '{project}' branch: '{branch}' stream: '{stream}' - lftools-version: '{lftools-version}' - string: name: NEXUS_IQ_CLI_VERSION default: '{nexus-iq-cli-version}' @@ -132,7 +117,7 @@ - lf-update-java-alternatives: java-version: '{java-version}' - lf-infra-clm-python: - clm-project-name: '{project-name}' + clm-project-name: '{nexus-iq-namespace}{project-name}' - job-template: name: '{project-name}-python-clm-{stream}' @@ -160,6 +145,8 @@ refspec: '$GERRIT_REFSPEC' branch: '$GERRIT_BRANCH' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + submodule-disable: '{submodule-disable}' choosing-strategy: default triggers: @@ -189,8 +176,10 @@ <<: *lf_python_xc_clm properties: + - lf-infra-properties: + build-days-to-keep: '{build-days-to-keep}' - github: - url: '{git-url}/{github-org}/{project}' + url: '{github-url}/{github-org}/{project}' scm: - lf-infra-github-scm: @@ -198,6 +187,8 @@ refspec: '' branch: 'refs/heads/{branch}' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + submodule-disable: '{submodule-disable}' choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -210,6 +201,8 @@ status-context: 'CLM' permit-all: true github-hooks: true + white-list-target-branches: + - '{branch}' included-regions: '{obj:github_included_regions}' ######################## @@ -227,7 +220,9 @@ build-days-to-keep: 7 build-timeout: 60 cron: 'H H * * *' # run daily + disable-job: false git-url: '$GIT_URL/$PROJECT' + github-url: 'https://github.com' java-version: openjdk8 python-version: python2 mvn-global-settings: global-settings @@ -236,6 +231,8 @@ sonar-mvn-goal: 'sonar:sonar' stream: master submodule-recursive: true + submodule-timeout: 10 + submodule-disable: false gerrit_trigger_file_paths: - compare-type: REG_EXP @@ -249,12 +246,13 @@ # Job Configuration # ##################### + disabled: '{disable-job}' + parameters: - lf-infra-parameters: project: '{project}' branch: '{branch}' stream: '{stream}' - lftools-version: '{lftools-version}' - string: name: ARCHIVE_ARTIFACTS default: '{archive-artifacts}' @@ -275,11 +273,7 @@ can call "org.codehaus.mojo:sonar-maven-plugin:3.3.0.603:sonar". builders: - - shell: !include-raw-escape: - # Workaround issue where the tox run later breaks the lftools virtualenv. - # Without running the install first the run in the publisher will fail - # due to missing lftools because it gets installed into a tox venv. - - ../shell/lftools-install.sh + - lf-infra-pre-build - lf-infra-tox-install: python-version: '{python-version}' - shell: !include-raw-escape: ../shell/tox-run.sh @@ -336,6 +330,8 @@ refspec: $GERRIT_REFSPEC branch: $GERRIT_BRANCH submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + submodule-disable: '{submodule-disable}' choosing-strategy: default triggers: @@ -364,8 +360,10 @@ <<: *lf_tox_sonar properties: + - lf-infra-properties: + build-days-to-keep: '{build-days-to-keep}' - github: - url: '{git-url}/{github-org}/{project}' + url: '{github-url}/{github-org}/{project}' scm: - lf-infra-github-scm: @@ -373,6 +371,8 @@ refspec: '+refs/pull/*:refs/remotes/origin/pr/*' branch: '$sha1' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + submodule-disable: '{submodule-disable}' choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -383,6 +383,8 @@ status-context: 'Python Sonar' permit-all: true github-hooks: true + white-list-target-branches: + - '{branch}' included-regions: '{obj:github_included_regions}' ############## @@ -399,11 +401,15 @@ branch: master build-days-to-keep: 7 build-timeout: 15 + disable-job: false git-url: '$GIT_URL/$GERRIT_PROJECT' + github-url: 'https://github.com' parallel: true python-version: python2 stream: master submodule-recursive: true + submodule-timeout: 10 + submodule-disable: false tox-dir: '' tox-envs: '' @@ -422,6 +428,7 @@ project-type: freestyle node: '{build-node}' concurrent: true + disabled: '{disable-job}' properties: - lf-infra-properties: @@ -432,7 +439,6 @@ project: '{project}' branch: '{branch}' stream: '{stream}' - lftools-version: '{lftools-version}' - lf-infra-tox-parameters: tox-dir: '{tox-dir}' tox-envs: '{tox-envs}' @@ -447,11 +453,7 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' builders: - - shell: !include-raw-escape: - # Workaround issue where the tox run later breaks the lftools virtualenv. - # Without running the install first the run in the publisher will fail - # due to missing lftools because it gets installed into a tox venv. - - ../shell/lftools-install.sh + - lf-infra-pre-build - lf-infra-tox-install: python-version: '{python-version}' - shell: !include-raw-escape: ../shell/tox-run.sh @@ -469,6 +471,7 @@ # Default parameters # ###################### + gerrit-skip-vote: false gerrit_verify_triggers: - patchset-created-event: exclude-drafts: true @@ -489,6 +492,8 @@ refspec: '$GERRIT_REFSPEC' branch: '$GERRIT_BRANCH' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + submodule-disable: '{submodule-disable}' choosing-strategy: gerrit triggers: @@ -502,6 +507,11 @@ - branch-compare-type: ANT branch-pattern: '**/{branch}' file-paths: '{obj:gerrit_trigger_file_paths}' + skip-vote: + successful: '{gerrit-skip-vote}' + failed: '{gerrit-skip-vote}' + unstable: '{gerrit-skip-vote}' + notbuilt: '{gerrit-skip-vote}' - job-template: # Python projects typically use tox to run testing. @@ -510,8 +520,10 @@ <<: *lf_tox_verify properties: + - lf-infra-properties: + build-days-to-keep: '{build-days-to-keep}' - github: - url: '{git-url}/{github-org}/{project}' + url: '{github-url}/{github-org}/{project}' scm: - lf-infra-github-scm: @@ -519,6 +531,8 @@ refspec: '+refs/pull/*:refs/remotes/origin/pr/*' branch: '$sha1' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' + submodule-disable: '{submodule-disable}' choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -529,4 +543,6 @@ status-context: 'Tox Verify' permit-all: true github-hooks: true + white-list-target-branches: + - '{branch}' included-regions: '{obj:github_included_regions}'