---
-- 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 #
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
wrappers:
- lf-infra-wrappers:
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
# 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}'
- 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}'
refspec: '$GERRIT_REFSPEC'
branch: '$GERRIT_BRANCH'
submodule-recursive: '{submodule-recursive}'
+ submodule-timeout: '{submodule-timeout}'
choosing-strategy: default
triggers:
<<: *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:
refspec: ''
branch: 'refs/heads/{branch}'
submodule-recursive: '{submodule-recursive}'
+ submodule-timeout: '{submodule-timeout}'
choosing-strategy: default
jenkins-ssh-credential: '{jenkins-ssh-credential}'
status-context: 'CLM'
permit-all: true
github-hooks: true
+ white-list-target-branches:
+ - '{branch}'
included-regions: '{obj:github_included_regions}'
########################
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
sonar-mvn-goal: 'sonar:sonar'
stream: master
submodule-recursive: true
+ submodule-timeout: 10
gerrit_trigger_file_paths:
- compare-type: REG_EXP
# 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}'
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
refspec: $GERRIT_REFSPEC
branch: $GERRIT_BRANCH
submodule-recursive: '{submodule-recursive}'
+ submodule-timeout: '{submodule-timeout}'
choosing-strategy: default
triggers:
<<: *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:
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}'
status-context: 'Python Sonar'
permit-all: true
github-hooks: true
+ white-list-target-branches:
+ - '{branch}'
included-regions: '{obj:github_included_regions}'
##############
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: ''
project-type: freestyle
node: '{build-node}'
concurrent: true
+ disabled: '{disable-job}'
properties:
- lf-infra-properties:
project: '{project}'
branch: '{branch}'
stream: '{stream}'
- lftools-version: '{lftools-version}'
- lf-infra-tox-parameters:
tox-dir: '{tox-dir}'
tox-envs: '{tox-envs}'
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
refspec: '$GERRIT_REFSPEC'
branch: '$GERRIT_BRANCH'
submodule-recursive: '{submodule-recursive}'
+ submodule-timeout: '{submodule-timeout}'
choosing-strategy: gerrit
triggers:
<<: *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:
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}'
status-context: 'Tox Verify'
permit-all: true
github-hooks: true
+ white-list-target-branches:
+ - '{branch}'
included-regions: '{obj:github_included_regions}'