2 # This file contains job templates for Maven projects.
12 properties-content: 'MAVEN_GOALS={mvn-goals}'
13 - shell: !include-raw-escape:
14 - ../shell/common-variables.sh
15 - ../shell/maven-build.sh
20 - shell: !include-raw:
21 - ../shell/common-variables.sh
22 - ../shell/maven-deploy.sh
27 # include-raw-escape fails due to JJB bug
28 - shell: !include-raw:
29 - ../shell/common-variables.sh
30 - ../shell/maven-stage.sh
33 name: lf-update-java-alternatives
36 # Work around inject plugin overriding our GIT_URL variable incorrectly
37 # https://issues.jenkins-ci.org/browse/JENKINS-49775
39 SET_JDK_VERSION={java-version}
41 - shell: !include-raw-escape: ../shell/update-java-alternatives.sh
43 properties-file: '/tmp/java.env'
49 - lf_maven_common: &lf_maven_common
52 ######################
53 # Default parameters #
54 ######################
59 **/target/**/feature.xml
60 **/target/failsafe-reports/failsafe-summary.xml
61 **/target/surefire-reports/*-output.txt
67 project-type: freestyle
71 - lf-infra-properties:
72 build-days-to-keep: '{build-days-to-keep}'
75 - lf-infra-parameters:
79 lftools-version: '{lftools-version}'
80 - lf-infra-maven-parameters:
81 mvn-opts: '{mvn-opts}'
82 mvn-params: '{mvn-params}'
83 mvn-version: '{mvn-version}'
85 name: ARCHIVE_ARTIFACTS
86 default: '{archive-artifacts}'
87 description: Artifacts to archive to the logs server.
91 build-timeout: '{build-timeout}'
92 jenkins-ssh-credential: '{jenkins-ssh-credential}'
95 # TODO: Make email notification work.
96 # - lf-infra-email-notify:
97 # email-recipients: '{email-recipients}'
98 # email-prefix: '[releng]'
105 - lf_maven_clm: &lf_maven_clm
108 ######################
109 # Default parameters #
110 ######################
113 build-days-to-keep: 30 # 30 days for troubleshooting purposes
116 git-url: '$GIT_URL/$PROJECT'
117 github-url: 'https://github.com'
118 java-version: openjdk8
119 mvn-global-settings: global-settings
123 nexus-iq-namespace: '' # Recommend a trailing dash when set. Example: odl-
124 nexus-iq-stage: 'build'
126 submodule-recursive: true
128 nexus_iq_scan_patterns:
136 - comment-added-contains-event:
137 comment-contains-value: run-clm$
140 - lf-infra-parameters:
144 lftools-version: '{lftools-version}'
145 - lf-infra-maven-parameters:
146 mvn-opts: '{mvn-opts}'
147 mvn-params: '{mvn-params}'
148 mvn-version: '{mvn-version}'
150 name: ARCHIVE_ARTIFACTS
151 default: '{archive-artifacts}'
152 description: Artifacts to archive to the logs server.
154 nexus-iq-stage: '{nexus-iq-stage}'
156 #####################
157 # Job Configuration #
158 #####################
160 disabled: '{disable-job}'
165 mvn-version: '{mvn-version}'
166 - lf-update-java-alternatives:
167 java-version: '{java-version}'
168 - lf-provide-maven-settings:
169 global-settings-file: '{mvn-global-settings}'
170 settings-file: '{mvn-settings}'
171 - shell: !include-raw-escape:
172 - ../shell/common-variables.sh
173 - ../shell/sonatype-clm.sh
174 - lf-provide-maven-settings-cleanup
175 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
176 - nexus-iq-policy-evaluator:
177 stage: '{nexus-iq-stage}'
178 application-type: 'manual'
179 application-id: '{nexus-iq-namespace}{project-name}'
180 scan-patterns: '{obj:nexus_iq_scan_patterns}'
181 fail-build-network-error: true
184 name: '{project-name}-maven-clm-{stream}'
187 # yamllint disable-line rule:key-duplicates
191 - lf-infra-gerrit-scm:
192 jenkins-ssh-credential: '{jenkins-ssh-credential}'
194 refspec: '$GERRIT_REFSPEC'
195 branch: '$GERRIT_BRANCH'
196 submodule-recursive: '{submodule-recursive}'
197 choosing-strategy: default
200 # Build weekly on Saturdays
203 server-name: '{gerrit-server-name}'
204 trigger-on: '{obj:gerrit_clm_triggers}'
206 - project-compare-type: ANT
207 project-pattern: '{project}'
209 - branch-compare-type: ANT
210 branch-pattern: '**/{branch}'
218 name: '{project-name}-maven-clm-{stream}'
221 # yamllint disable-line rule:key-duplicates
225 - lf-infra-properties:
226 build-days-to-keep: '{build-days-to-keep}'
228 url: '{github-url}/{github-org}/{project}'
231 - lf-infra-github-scm:
232 url: '{git-clone-url}{github-org}/{project}'
234 branch: 'refs/heads/{branch}'
235 submodule-recursive: '{submodule-recursive}'
236 choosing-strategy: default
237 jenkins-ssh-credential: '{jenkins-ssh-credential}'
240 # Build weekly on Saturdays
242 - github-pull-request:
243 trigger-phrase: '^run-clm$'
244 only-trigger-phrase: true
245 status-context: 'CLM'
250 white-list: '{obj:github_pr_whitelist}'
251 admin-list: '{obj:github_pr_admin_list}'
252 white-list-target-branches:
255 #########################
256 # Maven Javadoc Publish #
257 #########################
259 - lf_maven_javadoc_publish: &lf_maven_javadoc_publish
260 name: lf-maven-javadoc-publish
262 ######################
263 # Default parameters #
264 ######################
267 build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
270 git-url: '$GIT_URL/$PROJECT'
271 github-url: 'https://github.com'
272 java-version: openjdk8
273 mvn-global-settings: global-settings
278 submodule-recursive: true
280 gerrit_merge_triggers:
281 - change-merged-event
282 - comment-added-contains-event:
283 comment-contains-value: remerge$
285 #####################
286 # Job Configuration #
287 #####################
289 disabled: '{disable-job}'
294 mvn-version: '{mvn-version}'
295 - lf-update-java-alternatives:
296 java-version: '{java-version}'
297 - lf-provide-maven-settings:
298 global-settings-file: '{mvn-global-settings}'
299 settings-file: '{mvn-settings}'
300 - lf-infra-create-netrc:
301 server-id: '{mvn-site-id}'
303 properties-content: 'DEPLOY_PATH={javadoc-path}'
304 - shell: !include-raw-escape:
305 - ../shell/common-variables.sh
306 - ../shell/maven-javadoc-generate.sh
307 - ../shell/maven-javadoc-publish.sh
308 - lf-provide-maven-settings-cleanup
311 name: '{project-name}-maven-javadoc-publish-{stream}'
312 id: gerrit-maven-javadoc-publish
314 # yamllint disable-line rule:key-duplicates
315 <<: *lf_maven_javadoc_publish
317 git-url: '$GIT_URL/$GERRIT_PROJECT'
320 - lf-infra-gerrit-scm:
324 submodule-recursive: '{submodule-recursive}'
325 choosing-strategy: default
326 jenkins-ssh-credential: '{jenkins-ssh-credential}'
330 server-name: '{gerrit-server-name}'
331 trigger-on: '{obj:gerrit_merge_triggers}'
333 - project-compare-type: ANT
334 project-pattern: '{project}'
336 - branch-compare-type: ANT
337 branch-pattern: '**/{branch}'
340 name: '{project-name}-maven-javadoc-publish-{stream}'
341 id: github-maven-javadoc-publish
343 # yamllint disable-line rule:key-duplicates
344 <<: *lf_maven_javadoc_publish
347 - lf-infra-properties:
348 build-days-to-keep: '{build-days-to-keep}'
350 url: '{github-url}/{github-org}/{project}'
353 - lf-infra-github-scm:
354 url: '{git-clone-url}{github-org}/{project}'
357 submodule-recursive: '{submodule-recursive}'
358 choosing-strategy: default
359 jenkins-ssh-credential: '{jenkins-ssh-credential}'
365 - github-pull-request:
366 trigger-phrase: '^remerge$'
367 only-trigger-phrase: true
368 status-context: 'Maven Javadoc Publish'
373 white-list: '{obj:github_pr_whitelist}'
374 admin-list: '{obj:github_pr_admin_list}'
375 white-list-target-branches:
378 ########################
379 # Maven Javadoc Verify #
380 ########################
382 - lf_maven_javadoc_verify: &lf_maven_javadoc_verify
383 name: lf-maven-javadoc-verify
385 ######################
386 # Default parameters #
387 ######################
390 build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
393 git-url: '$GIT_URL/$PROJECT'
394 github-url: 'https://github.com'
395 java-version: openjdk8
396 mvn-global-settings: global-settings
401 submodule-recursive: true
403 gerrit_verify_triggers:
404 - patchset-created-event:
406 exclude-trivial-rebase: false
407 exclude-no-code-change: false
408 - draft-published-event
409 - comment-added-contains-event:
410 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
412 #####################
413 # Job Configuration #
414 #####################
417 disabled: '{disable-job}'
422 mvn-version: '{mvn-version}'
423 - lf-update-java-alternatives:
424 java-version: '{java-version}'
425 - lf-provide-maven-settings:
426 global-settings-file: '{mvn-global-settings}'
427 settings-file: '{mvn-settings}'
428 - shell: !include-raw-escape:
429 - ../shell/common-variables.sh
430 - ../shell/maven-javadoc-generate.sh
431 - lf-provide-maven-settings-cleanup
434 name: '{project-name}-maven-javadoc-verify-{stream}'
435 id: gerrit-maven-javadoc-verify
437 # yamllint disable-line rule:key-duplicates
438 <<: *lf_maven_javadoc_verify
441 - lf-infra-gerrit-scm:
442 jenkins-ssh-credential: '{jenkins-ssh-credential}'
444 refspec: '$GERRIT_REFSPEC'
445 branch: '$GERRIT_BRANCH'
446 submodule-recursive: '{submodule-recursive}'
447 choosing-strategy: gerrit
451 server-name: '{gerrit-server-name}'
452 trigger-on: '{obj:gerrit_verify_triggers}'
454 - project-compare-type: ANT
455 project-pattern: '{project}'
457 - branch-compare-type: ANT
458 branch-pattern: '**/{branch}'
461 name: '{project-name}-maven-javadoc-verify-{stream}'
462 id: github-maven-javadoc-verify
464 # yamllint disable-line rule:key-duplicates
465 <<: *lf_maven_javadoc_verify
468 - lf-infra-properties:
469 build-days-to-keep: '{build-days-to-keep}'
471 url: '{github-url}/{github-org}/{project}'
474 - lf-infra-github-scm:
475 url: '{git-clone-url}{github-org}/{project}'
476 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
478 submodule-recursive: '{submodule-recursive}'
479 choosing-strategy: default
480 jenkins-ssh-credential: '{jenkins-ssh-credential}'
483 - github-pull-request:
484 trigger-phrase: ^(recheck|reverify)$
485 only-trigger-phrase: false
486 status-context: 'Maven Javadoc Verify'
489 white-list-target-branches:
496 - lf_maven_merge: &lf_maven_merge
499 ######################
500 # Default parameters #
501 ######################
504 build-days-to-keep: 30 # 30 days in case we need to troubleshoot
508 git-url: '$GIT_URL/$PROJECT'
509 github-url: 'https://github.com'
510 java-version: openjdk8
511 mvn-global-settings: global-settings
512 mvn-goals: clean deploy
514 mvn-params: '-Dmerge'
516 nexus-cut-dirs: 6 # Number of dirs in the Nexus path to remove for wget -r.
518 submodule-recursive: true
520 gerrit_merge_triggers:
521 - change-merged-event
522 - comment-added-contains-event:
523 comment-contains-value: remerge$
525 gerrit_trigger_file_paths:
526 - compare-type: REG_EXP
529 # github_included_regions MUST match gerrit_trigger_file_paths
530 github_included_regions:
533 post_build_trigger: ''
535 #####################
536 # Job Configuration #
537 #####################
539 disabled: '{disable-job}'
543 - lf-jacoco-nojava-workaround
545 mvn-version: '{mvn-version}'
546 - lf-update-java-alternatives:
547 java-version: '{java-version}'
548 - lf-provide-maven-settings:
549 global-settings-file: '{mvn-global-settings}'
550 settings-file: '{mvn-settings}'
551 - lf-infra-create-netrc:
552 server-id: '{mvn-snapshot-id}'
554 properties-content: |
555 NEXUS_CUT_DIRS={nexus-cut-dirs}
556 NEXUS_REPO={nexus-snapshot-repo}
557 - shell: !include-raw-escape: ../shell/maven-fetch-metadata.sh
559 mvn-goals: '{mvn-goals}'
561 - lf-provide-maven-settings-cleanup
567 - trigger-parameterized-builds: '{obj:post_build_trigger}'
570 name: '{project-name}-maven-merge-{stream}'
571 id: gerrit-maven-merge
573 # yamllint disable-line rule:key-duplicates
577 - lf-infra-gerrit-scm:
578 jenkins-ssh-credential: '{jenkins-ssh-credential}'
580 refspec: '$GERRIT_REFSPEC'
581 branch: '$GERRIT_BRANCH'
582 submodule-recursive: '{submodule-recursive}'
583 choosing-strategy: default
586 - timed: '{obj:cron}'
588 server-name: '{gerrit-server-name}'
589 trigger-on: '{obj:gerrit_merge_triggers}'
591 - project-compare-type: ANT
592 project-pattern: '{project}'
594 - branch-compare-type: ANT
595 branch-pattern: '**/{branch}'
596 file-paths: '{obj:gerrit_trigger_file_paths}'
599 name: '{project-name}-maven-merge-{stream}'
600 id: github-maven-merge
602 # yamllint disable-line rule:key-duplicates
606 - lf-infra-properties:
607 build-days-to-keep: '{build-days-to-keep}'
609 url: '{github-url}/{github-org}/{project}'
612 - lf-infra-github-scm:
613 url: '{git-clone-url}{github-org}/{project}'
614 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
616 submodule-recursive: '{submodule-recursive}'
617 choosing-strategy: default
618 jenkins-ssh-credential: '{jenkins-ssh-credential}'
621 - timed: '{obj:cron}'
625 - github-pull-request:
626 trigger-phrase: '^remerge$'
627 only-trigger-phrase: true
628 status-context: 'Maven Merge'
633 white-list: '{obj:github_pr_whitelist}'
634 admin-list: '{obj:github_pr_admin_list}'
635 white-list-target-branches:
637 included-regions: '{obj:github_included_regions}'
643 - lf_maven_stage: &lf_maven_stage
646 ######################
647 # Default parameters #
648 ######################
651 build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
655 git-url: '$GIT_URL/$PROJECT'
656 github-url: 'https://github.com'
657 java-version: openjdk8
658 mvn-global-settings: global-settings
659 mvn-goals: clean deploy
663 sign-artifacts: false
665 submodule-recursive: true
667 gerrit_release_triggers:
668 - comment-added-contains-event:
669 comment-contains-value: stage-release$
671 #####################
672 # Job Configuration #
673 #####################
675 disabled: '{disable-job}'
678 - lf-infra-parameters:
682 lftools-version: '{lftools-version}'
683 - lf-infra-maven-parameters:
684 mvn-opts: '{mvn-opts}'
685 mvn-params: '{mvn-params}'
686 mvn-version: '{mvn-version}'
687 staging-profile-id: '{staging-profile-id}'
689 name: ARCHIVE_ARTIFACTS
690 default: '{archive-artifacts}'
691 description: Artifacts to archive to the logs server.
693 name: STAGING_PROFILE_ID
694 default: '{staging-profile-id}'
695 description: Nexus staging profile ID.
699 - lf-jacoco-nojava-workaround
701 mvn-version: '{mvn-version}'
702 - lf-update-java-alternatives:
703 java-version: '{java-version}'
704 - lf-provide-maven-settings:
705 global-settings-file: '{mvn-global-settings}'
706 settings-file: '{mvn-settings}'
707 - lf-infra-create-netrc:
708 server-id: '{mvn-staging-id}'
709 - shell: !include-raw-escape: ../shell/maven-patch-release.sh
711 mvn-goals: '{mvn-goals}'
713 sign-artifacts: '{sign-artifacts}'
714 sign-dir: '$WORKSPACE/m2repo'
716 - lf-provide-maven-settings-cleanup
719 name: '{project-name}-maven-stage-{stream}'
720 id: gerrit-maven-stage
722 # yamllint disable-line rule:key-duplicates
726 - lf-infra-gerrit-scm:
727 jenkins-ssh-credential: '{jenkins-ssh-credential}'
729 refspec: '$GERRIT_REFSPEC'
730 branch: '$GERRIT_BRANCH'
731 submodule-recursive: '{submodule-recursive}'
732 choosing-strategy: default
735 - timed: '{obj:cron}'
737 server-name: '{gerrit-server-name}'
738 trigger-on: '{obj:gerrit_release_triggers}'
740 - project-compare-type: ANT
741 project-pattern: '{project}'
743 - branch-compare-type: ANT
744 branch-pattern: '**/{branch}'
747 name: '{project-name}-maven-stage-{stream}'
748 id: github-maven-stage
750 # yamllint disable-line rule:key-duplicates
754 - lf-infra-properties:
755 build-days-to-keep: '{build-days-to-keep}'
757 url: '{github-url}/{github-org}/{project}'
760 - lf-infra-github-scm:
761 url: '{git-clone-url}{github-org}/{project}'
762 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
764 submodule-recursive: '{submodule-recursive}'
765 choosing-strategy: default
766 jenkins-ssh-credential: '{jenkins-ssh-credential}'
769 - timed: '{obj:cron}'
770 - github-pull-request:
771 trigger-phrase: '^build release$'
772 only-trigger-phrase: true
773 status-context: 'Maven Release'
776 white-list-target-branches:
783 - lf_maven_sonar: &lf_maven_sonar
786 ######################
787 # Default parameters #
788 ######################
790 branch: master # Sonar should always be run on master branch
791 build-days-to-keep: 7
793 cron: 'H H * * 6' # run weekly
795 git-url: '$GIT_URL/$PROJECT'
796 github-url: 'https://github.com'
797 java-version: openjdk8
798 mvn-global-settings: global-settings
802 sonar-mvn-goal: 'sonar:sonar'
804 submodule-recursive: true
806 gerrit_sonar_triggers:
807 - comment-added-contains-event:
808 comment-contains-value: run-sonar$
810 #####################
811 # Job Configuration #
812 #####################
814 disabled: '{disable-job}'
817 - lf-infra-parameters:
821 lftools-version: '{lftools-version}'
822 - lf-infra-maven-parameters:
823 mvn-opts: '{mvn-opts}'
824 mvn-params: '{mvn-params}'
825 mvn-version: '{mvn-version}'
827 name: ARCHIVE_ARTIFACTS
828 default: '{archive-artifacts}'
829 description: Artifacts to archive to the logs server.
831 name: SONAR_MAVEN_GOAL
832 default: '{sonar-mvn-goal}'
834 Maven goals to pass to the Sonar call. Typically sonar:sonar
835 however to use a specific version of the sonar-maven-plugin we
836 can call "org.codehaus.mojo:sonar-maven-plugin:3.3.0.603:sonar".
839 - timed: '{obj:cron}'
841 server-name: '{gerrit-server-name}'
842 trigger-on: '{obj:gerrit_sonar_triggers}'
844 - project-compare-type: 'ANT'
845 project-pattern: '{project}'
847 - branch-compare-type: 'ANT'
848 branch-pattern: '**/master'
857 - lf-infra-maven-sonar:
858 java-version: '{java-version}'
859 mvn-settings: '{mvn-settings}'
860 mvn-version: '{mvn-version}'
868 name: lf-infra-maven-sonar
869 # Run a Sonar build with Maven
872 mvn-version: '{mvn-version}'
873 - lf-update-java-alternatives:
874 java-version: '{java-version}'
876 # Switch this to the sonar wrapper when JJB 2.0 is available
877 properties-content: SONAR_HOST_URL=$SONAR_URL
878 - lf-provide-maven-settings:
879 global-settings-file: global-settings
880 settings-file: '{mvn-settings}'
881 - shell: !include-raw-escape:
882 - ../shell/common-variables.sh
883 - ../shell/maven-sonar.sh
884 - lf-provide-maven-settings-cleanup
887 name: '{project-name}-sonar'
888 id: gerrit-maven-sonar
890 # yamllint disable-line rule:key-duplicates
894 - lf-infra-gerrit-scm:
895 jenkins-ssh-credential: '{jenkins-ssh-credential}'
897 refspec: $GERRIT_REFSPEC
898 branch: $GERRIT_BRANCH
899 submodule-recursive: '{submodule-recursive}'
900 choosing-strategy: default
903 name: '{project-name}-sonar'
904 id: github-maven-sonar
906 # yamllint disable-line rule:key-duplicates
910 - lf-infra-properties:
911 build-days-to-keep: '{build-days-to-keep}'
913 url: '{github-url}/{github-org}/{project}'
916 - lf-infra-github-scm:
917 url: '{git-clone-url}{github-org}/{project}'
918 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
920 submodule-recursive: '{submodule-recursive}'
921 choosing-strategy: default
922 jenkins-ssh-credential: '{jenkins-ssh-credential}'
925 - github-pull-request:
926 trigger-phrase: '^run-sonar$'
927 only-trigger-phrase: false
928 status-context: 'Maven Sonar'
931 white-list-target-branches:
938 - lf_maven_verify: &lf_maven_verify
939 name: lf-maven-verify
941 ######################
942 # Default parameters #
943 ######################
946 build-days-to-keep: 7
949 git-url: '$GIT_URL/$PROJECT'
950 github-url: 'https://github.com'
951 java-version: openjdk8
952 mvn-global-settings: global-settings
953 mvn-goals: clean deploy
955 mvn-params: '-Dstream=$STREAM'
958 submodule-recursive: true
960 gerrit_verify_triggers:
961 - patchset-created-event:
963 exclude-trivial-rebase: false
964 exclude-no-code-change: false
965 - draft-published-event
966 - comment-added-contains-event:
967 comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
969 gerrit_trigger_file_paths:
970 - compare-type: REG_EXP
973 # github_included_regions MUST match gerrit_trigger_file_paths
974 github_included_regions:
977 #####################
978 # Job Configuration #
979 #####################
982 disabled: '{disable-job}'
986 - lf-jacoco-nojava-workaround
988 mvn-version: '{mvn-version}'
989 - lf-update-java-alternatives:
990 java-version: '{java-version}'
991 - lf-provide-maven-settings:
992 global-settings-file: '{mvn-global-settings}'
993 settings-file: '{mvn-settings}'
995 mvn-goals: '{mvn-goals}'
996 - lf-provide-maven-settings-cleanup
1004 name: '{project-name}-maven-verify-{stream}-{mvn-version}-{java-version}'
1005 id: gerrit-maven-verify
1006 <<: *lf_maven_common
1007 # yamllint disable-line rule:key-duplicates
1008 <<: *lf_maven_verify
1011 - lf-infra-gerrit-scm:
1012 jenkins-ssh-credential: '{jenkins-ssh-credential}'
1013 git-url: '{git-url}'
1014 refspec: '$GERRIT_REFSPEC'
1015 branch: '$GERRIT_BRANCH'
1016 submodule-recursive: '{submodule-recursive}'
1017 choosing-strategy: gerrit
1021 server-name: '{gerrit-server-name}'
1022 trigger-on: '{obj:gerrit_verify_triggers}'
1024 - project-compare-type: ANT
1025 project-pattern: '{project}'
1027 - branch-compare-type: ANT
1028 branch-pattern: '**/{branch}'
1029 file-paths: '{obj:gerrit_trigger_file_paths}'
1032 name: '{project-name}-maven-verify-{stream}-{mvn-version}-{java-version}'
1033 id: github-maven-verify
1034 <<: *lf_maven_common
1035 # yamllint disable-line rule:key-duplicates
1036 <<: *lf_maven_verify
1039 - lf-infra-properties:
1040 build-days-to-keep: '{build-days-to-keep}'
1042 url: '{github-url}/{github-org}/{project}'
1045 - lf-infra-github-scm:
1046 url: '{git-clone-url}{github-org}/{project}'
1047 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
1049 submodule-recursive: '{submodule-recursive}'
1050 choosing-strategy: default
1051 jenkins-ssh-credential: '{jenkins-ssh-credential}'
1054 - github-pull-request:
1055 trigger-phrase: '^(recheck|reverify)$'
1056 only-trigger-phrase: false
1057 status-context: 'Maven Verify'
1060 white-list-target-branches:
1062 included-regions: '{obj:github_included_regions}'
1064 #############################
1065 # Maven Verify Dependencies #
1066 #############################
1068 - lf_maven_verify_dependencies: &lf_maven_verify_dependencies
1069 name: lf-maven-verify-dependencies
1071 ######################
1072 # Default parameters #
1073 ######################
1076 build-days-to-keep: 7
1079 git-url: '$GIT_URL/$PROJECT'
1080 github-url: 'https://github.com'
1081 java-version: openjdk8
1082 mvn-global-settings: global-settings
1083 mvn-goals: clean deploy
1085 mvn-params: '-Dstream=$STREAM'
1088 submodule-recursive: true
1090 gerrit_verify_triggers:
1091 - comment-added-contains-event:
1092 comment-contains-value: 'recheck: [0-9 ]+'
1093 gerrit_trigger_file_paths:
1097 #####################
1098 # Job Configuration #
1099 #####################
1102 disabled: '{disable-job}'
1105 - lf-infra-pre-build
1106 - lf-jacoco-nojava-workaround
1108 mvn-version: '{mvn-version}'
1109 - lf-update-java-alternatives:
1110 java-version: '{java-version}'
1111 - lf-provide-maven-settings:
1112 global-settings-file: '{mvn-global-settings}'
1113 settings-file: '{mvn-settings}'
1114 - lf-fetch-dependent-patches
1115 - shell: !include-raw-escape:
1116 - ../shell/common-variables.sh
1117 - ../shell/maven-build-deps.sh
1119 mvn-goals: '{mvn-goals}'
1120 - lf-provide-maven-settings-cleanup
1128 name: '{project-name}-maven-verify-deps-{stream}-{mvn-version}-{java-version}'
1129 id: gerrit-maven-verify-dependencies
1130 <<: *lf_maven_common
1131 # yamllint disable-line rule:key-duplicates
1132 <<: *lf_maven_verify_dependencies
1135 - lf-infra-gerrit-scm:
1136 jenkins-ssh-credential: '{jenkins-ssh-credential}'
1137 git-url: '{git-url}'
1138 refspec: '$GERRIT_REFSPEC'
1139 branch: '$GERRIT_BRANCH'
1140 submodule-recursive: '{submodule-recursive}'
1141 choosing-strategy: gerrit
1145 server-name: '{gerrit-server-name}'
1146 trigger-on: '{obj:gerrit_verify_triggers}'
1148 - project-compare-type: ANT
1149 project-pattern: '{project}'
1151 - branch-compare-type: ANT
1152 branch-pattern: '**/{branch}'
1153 file-paths: '{obj:gerrit_trigger_file_paths}'