4 # Macro to create a ~/.netrc file from a Maven settings.xml
6 # {server-id} The id of a server as defined in settings.xml
9 properties-content: 'SERVER_ID={server-id}'
10 - shell: !include-raw-escape: ../shell/create-netrc.sh
13 name: gpg-verify-git-signature
14 # Verify gpg signature of the latest commit message in $WORKSPACE
16 # This command assumes that $WORKSPACE is a git repo.
18 # TODO: Verify signature after downloading users public key from a locally
19 # created repository instead of the public keymesh. This requires a process
20 # in place to get ODL developers public keys into a local repository without
21 # increasing the job thoughput.
23 - shell: !include-raw: ../shell/gpg-verify-git-signature.sh
26 name: lf-infra-ship-logs
28 - config-file-provider:
30 - file-id: 'jenkins-log-archives-settings'
31 variable: 'SETTINGS_FILE'
34 - shell: !include-raw:
35 - ../shell/lftools-install.sh
36 - ../shell/logs-deploy.sh
37 - shell: !include-raw:
38 - ../shell/logs-clear-credentials.sh
40 regexp: '^Build logs: .*'
43 name: lf-infra-parameters
49 Parameter to identify a Gerrit project. This is typically the
50 project repo path as exists in Gerrit.
51 For example: ofextensions/circuitsw
53 (Deprecated) Please use GERRIT_PROJECT instead. A future version
54 of global-jjb will remove this variable.
59 Parameter to identify Gerrit project. This is typically the
60 project repo path as exists in Gerrit.
61 For example: ofextensions/circuitsw
63 Note that Gerrit will override this parameter automatically if a
64 job is triggered by Gerrit.
69 Parameter to identify a Gerrit branch.
71 Note that Gerrit will override this parameter automatically if a
72 job is triggered by Gerrit.
77 Parameter to identify a refspec when pulling from Gerrit.
79 Note that Gerrit will override this parameter automatically if a
80 job is triggered by Gerrit.
83 name: lf-infra-properties
86 # Allow build data to be stored at a length configured by the
88 days-to-keep: '{build-days-to-keep}'
89 # Do not allow artifacts to be stored in Jenkins.
90 artifact-num-to-keep: 0
93 name: lf-infra-publish
94 # lf-infra macro to finish up a build.
96 # Handles the following:
97 # - Shipping logs to Nexus logs site repository
103 script-only-if-succeeded: false
104 script-only-if-failed: false
105 mark-unstable-if-failed: false
108 # Do not clean up *.jenkins-trigger files for jobs that use a
109 # properties file as input for triggering another build.
110 - '**/*.jenkins-trigger'
114 name: lf-infra-gerrit-scm
117 credentials-id: '{jenkins-ssh-credential}'
118 url: '$GIT_URL/$GERRIT_PROJECT'
121 - 'refs/heads/{branch}'
125 recursive: '{submodule-recursive}'
126 choosing-strategy: '{choosing-strategy}'
129 name: lf-infra-github-scm
132 credentials-id: '{jenkins-ssh-credential}'
133 url: '$GIT_URL/$PROJECT'
138 recursive: '{submodule-recursive}'
139 choosing-strategy: '{choosing-strategy}'
142 name: lf-infra-wrappers
147 timeout: '{build-timeout}'
148 timeout-var: 'BUILD_TIMEOUT'
151 - ssh-agent-credentials:
153 - '{jenkins-ssh-credential}'