X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fakraino-templates%2Fakraino-jjb-kni.yaml;fp=jjb%2Fakraino-templates%2Fakraino-jjb-kni.yaml;h=1e48683fefcbcbd1433e0f4c301ea6fdeeda92a5;hp=0814f6e33ba9a5b57f894cbf7cc7a35426fb0eda;hb=2f1f312557bb1396df3a2430b4841c7210d6b8b2;hpb=255982da1b4eebc4c109d793a24dffee016b41e2 diff --git a/jjb/akraino-templates/akraino-jjb-kni.yaml b/jjb/akraino-templates/akraino-jjb-kni.yaml index 0814f6e..1e48683 100644 --- a/jjb/akraino-templates/akraino-jjb-kni.yaml +++ b/jjb/akraino-templates/akraino-jjb-kni.yaml @@ -14,6 +14,28 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +# A builder to ship logs from a bare metal Akraino deploy test node. +# Similar to lf-infra-ship-logs without python-tools-install.sh and +# job-cost.sh. +- builder: + name: kni-deploy-ship-logs + builders: + # Ensure no pre-existing .netrc files are overriding logs config + - lf-provide-maven-settings-cleanup + - config-file-provider: + files: + - file-id: "jenkins-log-archives-settings" + variable: "SETTINGS_FILE" + - lf-infra-create-netrc: + server-id: logs + - shell: !include-raw: + - ../../global-jjb/shell/logs-deploy.sh + - shell: !include-raw: + - ../../global-jjb/shell/logs-clear-credentials.sh + - description-setter: + regexp: "(^(Nexus|S3) build logs: .*)" + - kni_common: &kni_common name: kni-common @@ -130,6 +152,26 @@ choosing-strategy: default basedir: 'installer' + publishers: + - postbuildscript: + builders: + - role: BOTH + build-on: + - ABORTED + - FAILURE + - NOT_BUILT + - SUCCESS + - UNSTABLE + build-steps: + - kni-deploy-ship-logs + mark-unstable-if-failed: true + - workspace-cleanup: + exclude: + # Do not clean up *.jenkins-trigger files for jobs that use a + # properties file as input for triggering another build. + - "**/*.jenkins-trigger" + fail-build: false + - job-template: id: kni-installer-verify-installer name: '{project-name}-verify-installer'