5 - integration_maven_common: &integration_maven_common
6 # This common maven base template is based on
7 # lf-maven-common in global-jjb/jjb/lf-maven-jobs.yaml
8 # and adjusted for jobs in project-specific CSIT flow
10 name: integration-maven-common
12 ######################
13 # Default parameters #
14 ######################
19 **/target/**/feature.xml
20 **/target/failsafe-reports/failsafe-summary.xml
21 **/target/surefire-reports/*-output.txt
27 project-type: freestyle
31 - lf-infra-properties:
32 build-days-to-keep: "{build-days-to-keep}"
35 - lf-infra-parameters:
39 - lf-infra-maven-parameters:
40 mvn-opts: "{mvn-opts}"
41 mvn-params: "{mvn-params}"
42 mvn-version: "{mvn-version}"
44 name: ARCHIVE_ARTIFACTS
45 default: "{archive-artifacts}"
46 description: Artifacts to archive to the logs server.
49 - lf-infra-gerrit-scm:
50 jenkins-ssh-credential: "{jenkins-ssh-credential}"
52 refspec: "$GERRIT_REFSPEC"
53 branch: "$GERRIT_BRANCH"
54 submodule-recursive: "{submodule-recursive}"
55 submodule-timeout: "{submodule-timeout}"
56 submodule-disable: "{submodule-disable}"
57 choosing-strategy: "gerrit"
61 build-timeout: "{build-timeout}"
62 jenkins-ssh-credential: "{jenkins-ssh-credential}"
67 #############################
68 # Maven Snapshot for Docker #
69 #############################
71 - integration_maven_docker_snapshot: &integration_maven_docker_snapshot
72 name: integration-maven-docker-snapshot
76 - lf-jacoco-nojava-workaround
78 mvn-version: "{mvn-version}"
79 - lf-update-java-alternatives:
80 java-version: "{java-version}"
81 - lf-infra-docker-login:
82 global-settings-file: "{mvn-global-settings}"
83 settings-file: "{mvn-settings}"
84 # must provide maven settings AFTER docker-login due to its cleanup
85 - lf-provide-maven-settings:
86 global-settings-file: "{mvn-global-settings}"
87 settings-file: "{mvn-settings}"
88 - lf-maven-versions-plugin:
89 maven-versions-plugin: "{maven-versions-plugin}"
90 version-properties-file: "{version-properties-file}"
91 mvn-version: "{mvn-version}"
93 mvn-settings: "{mvn-settings}"
96 CONTAINER_PULL_REGISTRY={container-public-registry}
97 CONTAINER_PUSH_REGISTRY={container-snapshot-registry}
99 mvn-goals: "{mvn-goals}"
101 sign-artifacts: "{sign-artifacts}"
102 sign-dir: "$WORKSPACE/m2repo"
103 sign-mode: "{sign-mode}"
104 - lf-provide-maven-settings-cleanup
107 # Job template for creating snapshot docker images
108 # identified by given unique tag with maven
109 # in project-specific CSIT flow
111 name: "{project-name}-{stream}-maven-docker-snapshot"
112 id: gerrit-maven-docker-snapshot
113 <<: *integration_maven_common
114 # yamllint disable-line rule:key-duplicates
115 <<: *integration_maven_docker_snapshot
117 ######################
118 # Default parameters #
119 ######################
122 build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
125 git-url: "$GIT_URL/$PROJECT"
126 github-url: "https://github.com"
127 java-version: openjdk8
128 maven-versions-plugin: false
129 version-properties-file: version.properties
131 mvn-global-settings: global-settings
132 mvn-goals: clean deploy
138 sign-artifacts: false
141 submodule-recursive: true
142 submodule-timeout: 10
143 submodule-disable: false
149 refspec: 'refs/heads/{branch}'
150 artifacts: '{archive-artifacts}'
152 maven-version: '{maven-version}'
154 mvn-params: '{mvn-params}'
156 - integration-unique-docker-tag:
157 unique-docker-tag: ''