+ build-days-to-keep: 30 # 30 days for troubleshooting purposes
+ build-timeout: 60
+ git-url: '$GIT_URL/$PROJECT'
+ java-version: openjdk8
+ staging-profile-id: '' # Unused in this job
+ stream: master
+ submodule-recursive: true
+
+ gerrit_clm_triggers:
+ - comment-added-contains-event:
+ comment-contains-value: run-xc-clm$
+
+ #####################
+ # Job Configuration #
+ #####################
+
+ triggers:
+ # Build weekly on Saturdays
+ - timed: 'H H * * 6'
+ - gerrit:
+ server-name: '{gerrit-server-name}'
+ trigger-on: '{obj:gerrit_clm_triggers}'
+ projects:
+ - project-compare-type: ANT
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: ANT
+ branch-pattern: '**/{branch}'
+ skip-vote:
+ successful: true
+ failed: true
+ unstable: true
+ notbuilt: true
+ wrappers:
+ - credentials-binding:
+ - username-password-separated:
+ credential-id: sonar-xc-clm
+ username: CLM_USER
+ password: CLM_PASSWORD
+ builders:
+ - lf-update-java-alternatives:
+ java-version: '{java-version}'
+ - lf-infra-clm-python:
+ clm-project-name: '{project-name}'
+
+- job-template:
+ name: '{project-name}-python-clm-{stream}'
+ id: gerrit-python-xc-clm
+ <<: *lf_python_common
+ # yamllint disable-line rule:key-duplicates
+ <<: *lf_python_xc_clm
+
+ scm:
+ - lf-infra-gerrit-scm:
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+ git-url: '{git-url}'
+ refspec: '$GERRIT_REFSPEC'
+ branch: '$GERRIT_BRANCH'
+ submodule-recursive: '{submodule-recursive}'
+ choosing-strategy: default
+
+- job-template:
+ name: '{project-name}-python-clm-{stream}'
+ id: github-python-xc-clm
+ <<: *lf_python_common
+ # yamllint disable-line rule:key-duplicates
+ <<: *lf_python_xc_clm
+
+ properties:
+ - github:
+ url: '{git-url}/{github-org}/{project}'
+
+ scm:
+ - lf-infra-github-scm:
+ url: '{git-clone-url}{github-org}/{project}'
+ refspec: ''
+ branch: 'refs/heads/{branch}'
+ submodule-recursive: '{submodule-recursive}'
+ choosing-strategy: default
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+ triggers:
+ - lf-infra-github-pr-trigger:
+ trigger-phrase: '^run-xc-clm$'
+ only-trigger-phrase: false
+ status-context: 'CLM'
+ permit-all: true
+ github-hooks: true
+ github-org: ''
+ github_pr_whitelist:
+ - ''
+ github_pr_admin_list:
+ - ''
+
+##############
+# Tox Verify #
+##############
+
+- lf_tox_verify: &lf_tox_verify
+ name: lf-tox-verify
+
+ ######################
+ # Default parameters #
+ ######################
+
+ branch: master
+ build-days-to-keep: 7
+ build-timeout: 15