jobs:
- gerrit-maven-clm
- gerrit-maven-merge
- - gerrit-maven-release
+ - gerrit-maven-stage
- gerrit-maven-verify
- gerrit-maven-verify-dependencies
jobs:
- github-maven-clm
- github-maven-merge
- - github-maven-release
+ - github-maven-stage
- github-maven-verify
- job-group:
mvn-opts: '{mvn-opts}'
mvn-params: '{mvn-params}'
mvn-version: '{mvn-version}'
- # Staging repos do not make sense for CLM jobs so set it blank.
- staging-profile-id: '{staging-profile-id}'
- string:
name: ARCHIVE_ARTIFACTS
default: '{archive-artifacts}'
branch: master
build-days-to-keep: 30 # 30 days for troubleshooting purposes
build-timeout: 60
+ disable-job: true
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
- staging-profile-id: '' # Unused in this job
+ mvn-version: mvn35
+ nexus-iq-stage: 'build'
stream: master
submodule-recursive: true
+ nexus_iq_scan_patterns:
+ - '**/*.ear'
+ - '**/*.jar'
+ - '**/*.tar.gz'
+ - '**/*.war'
+ - '**/*.zip'
+
gerrit_clm_triggers:
- comment-added-contains-event:
comment-contains-value: run-clm$
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ branch: '{branch}'
+ stream: '{stream}'
+ lftools-version: '{lftools-version}'
+ - lf-infra-maven-parameters:
+ mvn-opts: '{mvn-opts}'
+ mvn-params: '{mvn-params}'
+ mvn-version: '{mvn-version}'
+ - string:
+ name: ARCHIVE_ARTIFACTS
+ default: '{archive-artifacts}'
+ description: Artifacts to archive to the logs server.
+ - lf-clm-parameters:
+ nexus-iq-stage: '{nexus-iq-stage}'
+
#####################
# 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
+ disabled: '{disable-job}'
builders:
- lf-maven-install:
- ../shell/sonatype-clm.sh
- lf-provide-maven-settings-cleanup
- shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
- - sonatype-clm:
- application-name: '{project-name}'
+ - nexus-iq-policy-evaluator:
+ stage: '{nexus-iq-stage}'
+ application-type: 'manual'
+ application-id: '{project-name}'
+ scan-patterns: '{obj:nexus_iq_scan_patterns}'
+ fail-build-network-error: true
- job-template:
name: '{project-name}-maven-clm-{stream}'
submodule-recursive: '{submodule-recursive}'
choosing-strategy: default
+ 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
+
- job-template:
name: '{project-name}-maven-clm-{stream}'
id: github-maven-clm
<<: *lf_maven_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:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
triggers:
- - lf-infra-github-pr-trigger:
+ # Build weekly on Saturdays
+ - timed: 'H H * * 6'
+ - github-pull-request:
trigger-phrase: '^run-clm$'
- only-trigger-phrase: false
+ only-trigger-phrase: true
status-context: 'CLM'
permit-all: true
github-hooks: true
- github-org: ''
- github_pr_whitelist:
- - ''
- github_pr_admin_list:
- - ''
+ org-list:
+ - '{github-org}'
+ white-list: '{obj:github_pr_whitelist}'
+ admin-list: '{obj:github_pr_admin_list}'
+ white-list-target-branches:
+ - '{branch}'
#########################
# Maven Javadoc Publish #
branch: master
build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
build-timeout: 60
+ disable-job: false
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
- staging-profile-id: '' # Unused by the javadoc jobs
+ mvn-version: mvn35
stream: master
submodule-recursive: true
# Job Configuration #
#####################
+ disabled: '{disable-job}'
+
builders:
- lf-maven-install:
mvn-version: '{mvn-version}'
<<: *lf_maven_javadoc_publish
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:
- github
- pollscm:
cron: ''
- - lf-infra-github-pr-trigger:
+ - github-pull-request:
trigger-phrase: '^remerge$'
only-trigger-phrase: true
- status-context: 'JJB Merge'
- permit-all: false
+ status-context: 'Maven Javadoc Publish'
+ permit-all: true
github-hooks: true
- github-org: '{github-org}'
- github_pr_whitelist: '{obj:github_pr_whitelist}'
- github_pr_admin_list: '{obj:github_pr_admin_list}'
+ org-list:
+ - '{github-org}'
+ white-list: '{obj:github_pr_whitelist}'
+ admin-list: '{obj:github_pr_admin_list}'
+ white-list-target-branches:
+ - '{branch}'
########################
# Maven Javadoc Verify #
branch: master
build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
build-timeout: 60
+ disable-job: false
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
- staging-profile-id: '' # Unused by the javadoc jobs
+ mvn-version: mvn35
stream: master
submodule-recursive: true
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: recheck$
+ comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
#####################
# Job Configuration #
#####################
concurrent: true
+ disabled: '{disable-job}'
builders:
- lf-maven-install:
<<: *lf_maven_javadoc_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:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
triggers:
- - lf-infra-github-pr-trigger:
- trigger-phrase: '^recheck$'
- only-trigger-phrase: true
- status-context: 'Maven Javadoc'
+ - github-pull-request:
+ trigger-phrase: ^(recheck|reverify)$
+ only-trigger-phrase: false
+ status-context: 'Maven Javadoc Verify'
permit-all: true
github-hooks: true
- github-org: ''
- github_pr_whitelist:
- - ''
- github_pr_admin_list:
- - ''
+ white-list-target-branches:
+ - '{branch}'
###############
# Maven Merge #
branch: master
build-days-to-keep: 30 # 30 days in case we need to troubleshoot
build-timeout: 60
- cron: 'H H * * 0' # push fresh snapshot weekly
+ cron: '@daily'
+ disable-job: false
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-goals: clean deploy
mvn-opts: ''
mvn-params: '-Dmerge'
- mvn-version: mvn33
+ mvn-version: mvn35
nexus-cut-dirs: 6 # Number of dirs in the Nexus path to remove for wget -r.
- staging-profile-id: '' # Unused by this job.
stream: master
submodule-recursive: true
comment-contains-value: remerge$
gerrit_trigger_file_paths:
- - compare-type: ANT
- pattern: '**'
+ - compare-type: REG_EXP
+ pattern: '.*'
+
+ # github_included_regions MUST match gerrit_trigger_file_paths
+ github_included_regions:
+ - '.*'
post_build_trigger: ''
# Job Configuration #
#####################
+ disabled: '{disable-job}'
+
builders:
- lf-jacoco-nojava-workaround
- lf-maven-install:
<<: *lf_maven_merge
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:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
triggers:
- - lf-infra-github-pr-trigger:
+ - timed: '{obj:cron}'
+ - github
+ - pollscm:
+ cron: ''
+ - github-pull-request:
trigger-phrase: '^remerge$'
- only-trigger-phrase: false
+ only-trigger-phrase: true
status-context: 'Maven Merge'
permit-all: true
github-hooks: true
- github-org: ''
- github_pr_whitelist:
- - ''
- github_pr_admin_list:
- - ''
+ org-list:
+ - '{github-org}'
+ white-list: '{obj:github_pr_whitelist}'
+ admin-list: '{obj:github_pr_admin_list}'
+ white-list-target-branches:
+ - '{branch}'
+ included-regions: '{obj:github_included_regions}'
-#################
-# Maven Release #
-#################
+###############
+# Maven Stage #
+###############
-- lf_maven_release: &lf_maven_release
- name: lf-maven-release
+- lf_maven_stage: &lf_maven_stage
+ name: lf-maven-stage
######################
# Default parameters #
branch: master
build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
build-timeout: 60
- cron: ''
+ cron: '@daily'
+ disable-job: false
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-goals: clean deploy
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
+ mvn-version: mvn35
stream: master
submodule-recursive: true
gerrit_release_triggers:
- comment-added-contains-event:
- comment-contains-value: build release$
+ comment-contains-value: stage-release$
#####################
# Job Configuration #
#####################
+ disabled: '{disable-job}'
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ branch: '{branch}'
+ stream: '{stream}'
+ lftools-version: '{lftools-version}'
+ - lf-infra-maven-parameters:
+ mvn-opts: '{mvn-opts}'
+ mvn-params: '{mvn-params}'
+ mvn-version: '{mvn-version}'
+ staging-profile-id: '{staging-profile-id}'
+ - string:
+ name: ARCHIVE_ARTIFACTS
+ default: '{archive-artifacts}'
+ description: Artifacts to archive to the logs server.
+ - string:
+ name: STAGING_PROFILE_ID
+ default: '{staging-profile-id}'
+ description: Nexus staging profile ID.
+
builders:
- lf-jacoco-nojava-workaround
- lf-maven-install:
- lf-provide-maven-settings-cleanup
- job-template:
- name: '{project-name}-maven-release-{stream}'
- id: gerrit-maven-release
+ name: '{project-name}-maven-stage-{stream}'
+ id: gerrit-maven-stage
<<: *lf_maven_common
# yamllint disable-line rule:key-duplicates
- <<: *lf_maven_release
+ <<: *lf_maven_stage
scm:
- lf-infra-gerrit-scm:
branch-pattern: '**/{branch}'
- job-template:
- name: '{project-name}-maven-release-{stream}'
- id: github-maven-release
+ name: '{project-name}-maven-stage-{stream}'
+ id: github-maven-stage
<<: *lf_maven_common
# yamllint disable-line rule:key-duplicates
- <<: *lf_maven_release
+ <<: *lf_maven_stage
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:
triggers:
- timed: '{obj:cron}'
- - lf-infra-github-pr-trigger:
+ - github-pull-request:
trigger-phrase: '^build release$'
only-trigger-phrase: true
status-context: 'Maven Release'
permit-all: true
github-hooks: true
- github-org: ''
- github_pr_whitelist:
- - ''
- github_pr_admin_list:
- - ''
+ white-list-target-branches:
+ - '{branch}'
###############
# Maven Sonar #
build-days-to-keep: 7
build-timeout: 60
cron: 'H H * * 6' # run weekly
+ disable-job: false
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
+ mvn-version: mvn35
sonar-mvn-goal: 'sonar:sonar'
- staging-profile-id: '' # Unused in this job
stream: master
submodule-recursive: true
# Job Configuration #
#####################
+ disabled: '{disable-job}'
+
parameters:
- lf-infra-parameters:
project: '{project}'
mvn-opts: '{mvn-opts}'
mvn-params: '{mvn-params}'
mvn-version: '{mvn-version}'
- # Staging repos do not make sense for Sonar jobs so set it blank.
- staging-profile-id: ''
- string:
name: ARCHIVE_ARTIFACTS
default: '{archive-artifacts}'
<<: *lf_maven_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:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
triggers:
- - lf-infra-github-pr-trigger:
- trigger-phrase: '^recheck$'
+ - github-pull-request:
+ trigger-phrase: '^run-sonar$'
only-trigger-phrase: false
- status-context: 'Maven Verify'
+ status-context: 'Maven Sonar'
permit-all: true
github-hooks: true
- github-org: ''
- github_pr_whitelist:
- - ''
- github_pr_admin_list:
- - ''
+ white-list-target-branches:
+ - '{branch}'
################
# Maven Verify #
branch: master
build-days-to-keep: 7
build-timeout: 60
+ disable-job: false
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-goals: clean deploy
mvn-opts: ''
mvn-params: '-Dstream=$STREAM'
- mvn-version: mvn33
- staging-profile-id: '' # Unused in this job
+ mvn-version: mvn35
stream: master
submodule-recursive: true
exclude-no-code-change: false
- draft-published-event
- comment-added-contains-event:
- comment-contains-value: recheck$
+ comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+
gerrit_trigger_file_paths:
- - compare-type: ANT
- pattern: '**'
+ - compare-type: REG_EXP
+ pattern: '.*'
+
+ # github_included_regions MUST match gerrit_trigger_file_paths
+ github_included_regions:
+ - '.*'
#####################
# Job Configuration #
#####################
concurrent: true
+ disabled: '{disable-job}'
builders:
- lf-jacoco-nojava-workaround
<<: *lf_maven_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:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
triggers:
- - lf-infra-github-pr-trigger:
- trigger-phrase: '^recheck$'
+ - github-pull-request:
+ trigger-phrase: '^(recheck|reverify)$'
only-trigger-phrase: false
status-context: 'Maven Verify'
permit-all: true
github-hooks: true
- github-org: ''
- github_pr_whitelist:
- - ''
- github_pr_admin_list:
- - ''
+ white-list-target-branches:
+ - '{branch}'
+ included-regions: '{obj:github_included_regions}'
#############################
# Maven Verify Dependencies #
branch: master
build-days-to-keep: 7
build-timeout: 60
+ disable-job: false
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-goals: clean deploy
mvn-opts: ''
mvn-params: '-Dstream=$STREAM'
- mvn-version: mvn33
- staging-profile-id: '' # Unused by this job
+ mvn-version: mvn35
stream: master
submodule-recursive: true
#####################
concurrent: true
+ disabled: '{disable-job}'
builders:
- lf-jacoco-nojava-workaround