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:
build-days-to-keep: 30 # 30 days for troubleshooting purposes
build-timeout: 60
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
mvn-version: mvn35
+ nexus-iq-stage: 'build'
staging-profile-id: '' # Unused in this job
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}'
+ # 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}'
+ description: Artifacts to archive to the logs server.
+ - lf-clm-parameters:
+ nexus-iq-stage: '{nexus-iq-stage}'
+
#####################
# Job Configuration #
#####################
- ../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}'
<<: *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:
- 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}'
white-list: '{obj:github_pr_whitelist}'
admin-list: '{obj:github_pr_admin_list}'
+ white-list-target-branches:
+ - '{branch}'
#########################
# Maven Javadoc Publish #
build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
build-timeout: 60
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-opts: ''
<<: *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-org}'
white-list: '{obj:github_pr_whitelist}'
admin-list: '{obj:github_pr_admin_list}'
+ white-list-target-branches:
+ - '{branch}'
########################
# Maven Javadoc Verify #
build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
build-timeout: 60
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-opts: ''
<<: *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:
status-context: 'Maven Javadoc Verify'
permit-all: true
github-hooks: true
+ white-list-target-branches:
+ - '{branch}'
###############
# Maven Merge #
build-timeout: 60
cron: 'H H * * 0' # push fresh snapshot weekly
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-goals: clean deploy
<<: *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:
- '{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 #
build-timeout: 60
cron: ''
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-goals: clean deploy
gerrit_release_triggers:
- comment-added-contains-event:
- comment-contains-value: build release$
+ comment-contains-value: stage-release$
#####################
# Job Configuration #
- 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:
status-context: 'Maven Release'
permit-all: true
github-hooks: true
+ white-list-target-branches:
+ - '{branch}'
###############
# Maven Sonar #
build-timeout: 60
cron: 'H H * * 6' # run weekly
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-opts: ''
<<: *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:
status-context: 'Maven Sonar'
permit-all: true
github-hooks: true
+ white-list-target-branches:
+ - '{branch}'
################
# Maven Verify #
build-days-to-keep: 7
build-timeout: 60
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-goals: clean deploy
<<: *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:
status-context: 'Maven Verify'
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
git-url: '$GIT_URL/$PROJECT'
+ github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
mvn-goals: clean deploy