Merge "Add macro for providing log location in Gerrit"
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 2 Aug 2016 14:43:44 +0000 (14:43 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 2 Aug 2016 14:43:44 +0000 (14:43 +0000)
jjb/releng-jobs.yaml
jjb/releng-macros.yaml

index af725dabc9dc26a3f15beee5dfe007ff09c41739..a350fd9ab42f73d80a79c50bf705073a9a4ccb13 100644 (file)
                       pattern: jjb-templates/**
 
     builders:
+        - opendaylight-infra-pre-builders
         - shell: |
             pip freeze
             jenkins-jobs -l DEBUG test --recursive -o archives/job_output jjb/
             gzip archives/job_output/*
-
         - releng-check-unicode
 
     publishers:
 
 
     builders:
+        - opendaylight-infra-pre-builders
         - shell: |
             virtualenv $WORKSPACE/venv
             source $WORKSPACE/venv/bin/activate
                       pattern: jjb-templates/**
 
     builders:
+        - opendaylight-infra-pre-builders
         - shell: |
             pip freeze
             jenkins-jobs --version
         - timed: 'H H * * 0'
 
     builders:
+        - opendaylight-infra-pre-builders
         - shell: |
             jenkins-jobs --flush-cache update --recursive jjb/
 
         - timed: 'H H * * 1'
 
     builders:
+        - opendaylight-infra-pre-builders
         - shell:
             !include-raw-escape:
                 - include-raw-check-poms.sh
index 7bd3a04e76657cd10a139ec01720637f42c1c265..e8c072b29e79ac24fefa99b2f16a0ffe28c7cbb2 100644 (file)
         - workspace-cleanup:
             fail-build: false
 
+- builder:
+    name: opendaylight-infra-pre-builders
+    builders:
+        - shell: |
+            if [ ! -z "$GERRIT_PATCHSET_REVISION" ]; then
+                LOG_MESSAGE="
+                    Logs for $JOB_NAME:
+                    https://logs.opendaylight.org/$SILO/$JENKINS_HOSTNAME/$JOB_NAME/$BUILD_NUMBER
+                    (note that logs will be unavailable until the job is completed running.)
+                "
+                ssh -p 29418 jenkins-$SILO@git.opendaylight.org gerrit review -m \"${LOG_MESSAGE}\" $GERRIT_PATCHSET_REVISION
+            fi
+
 - builder:
     name: wipe-org-opendaylight-repo
     builders: