X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-python-jobs.yaml;h=dfd4d34f4012d2c8795f58019909e4ee11607a83;hb=d589c771dc75206bb2b6d592435c8316cffd29fb;hp=9b077e4adadc896a2bad5b88551617ff709f5cfd;hpb=33157b200cf17ea688c996d2b9683a442515bdc3;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index 9b077e4a..dfd4d34f 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,13 +72,15 @@ 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 gerrit_trigger_file_paths: - compare-type: ANT @@ -112,12 +94,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}' @@ -133,7 +116,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}' @@ -161,6 +144,7 @@ refspec: '$GERRIT_REFSPEC' branch: '$GERRIT_BRANCH' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' choosing-strategy: default triggers: @@ -201,6 +185,7 @@ refspec: '' branch: 'refs/heads/{branch}' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -213,6 +198,8 @@ status-context: 'CLM' permit-all: true github-hooks: true + white-list-target-branches: + - '{branch}' included-regions: '{obj:github_included_regions}' ######################## @@ -230,6 +217,7 @@ 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 @@ -240,6 +228,7 @@ sonar-mvn-goal: 'sonar:sonar' stream: master submodule-recursive: true + submodule-timeout: 10 gerrit_trigger_file_paths: - compare-type: REG_EXP @@ -253,12 +242,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}' @@ -279,11 +269,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 @@ -340,6 +326,7 @@ refspec: $GERRIT_REFSPEC branch: $GERRIT_BRANCH submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' choosing-strategy: default triggers: @@ -379,6 +366,7 @@ refspec: '+refs/pull/*:refs/remotes/origin/pr/*' branch: '$sha1' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -389,6 +377,8 @@ status-context: 'Python Sonar' permit-all: true github-hooks: true + white-list-target-branches: + - '{branch}' included-regions: '{obj:github_included_regions}' ############## @@ -405,12 +395,14 @@ 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 tox-dir: '' tox-envs: '' @@ -429,6 +421,7 @@ project-type: freestyle node: '{build-node}' concurrent: true + disabled: '{disable-job}' properties: - lf-infra-properties: @@ -439,7 +432,6 @@ project: '{project}' branch: '{branch}' stream: '{stream}' - lftools-version: '{lftools-version}' - lf-infra-tox-parameters: tox-dir: '{tox-dir}' tox-envs: '{tox-envs}' @@ -454,11 +446,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 @@ -496,6 +484,7 @@ refspec: '$GERRIT_REFSPEC' branch: '$GERRIT_BRANCH' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' choosing-strategy: gerrit triggers: @@ -528,6 +517,7 @@ refspec: '+refs/pull/*:refs/remotes/origin/pr/*' branch: '$sha1' submodule-recursive: '{submodule-recursive}' + submodule-timeout: '{submodule-timeout}' choosing-strategy: default jenkins-ssh-credential: '{jenkins-ssh-credential}' @@ -538,4 +528,6 @@ status-context: 'Tox Verify' permit-all: true github-hooks: true + white-list-target-branches: + - '{branch}' included-regions: '{obj:github_included_regions}'