Install private jenkins for CD jobs
[icn.git] / ci / jjb / akraino-icn-macros.yaml
1 ---
2 - publisher:
3     name: icn-infra-publish
4     # lf-infra macro to finish up a build.
5     #
6     # Handles the following:
7     #   - Shipping logs to Nexus logs site repository
8     #   - Cleanup workspace
9     publishers:
10       - postbuildscript:
11           builders:
12             - role: BOTH
13               build-on:
14                 - ABORTED
15                 - FAILURE
16                 - NOT_BUILT
17                 - SUCCESS
18                 - UNSTABLE
19               build-steps:
20                 - lf-infra-sysstat
21                 - lf-infra-package-listing
22                 - icn-infra-ship-logs
23           mark-unstable-if-failed: true
24       - workspace-cleanup:
25           exclude:
26             # Do not clean up *.jenkins-trigger files for jobs that use a
27             # properties file as input for triggering another build.
28             - "**/*.jenkins-trigger"
29           fail-build: false
30
31 - builder:
32     name: icn-infra-ship-logs
33     builders:
34       # Ensure no pre-existing .netrc files are overriding logs config
35       #- lf-provide-maven-settings-cleanup
36       #- config-file-provider:
37       #    files:
38       #      - file-id: "jenkins-log-archives-settings"
39       #        variable: "SETTINGS_FILE"
40       #- lf-infra-create-netrc:
41       #    server-id: logs
42       - shell: !include-raw:
43           # Ensure python-tools are installed in case job template does not
44           # call the lf-infra-pre-build macro.
45           - ../../../ci-management/jjb/global-jjb/shell/python-tools-install.sh
46       - shell: !include-raw:
47           - shell/org-logs-deploy.sh
48       #- shell: !include-raw:
49       #    - ../../../ci-management/jjb/global-jjb/shell/logs-clear-credentials.sh
50       - description-setter:
51           regexp: "^Build logs: .*"
52