Merge "infra: bifrost: Upload build logs to artifacts.opnfv.org"
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 17 Jan 2017 11:34:18 +0000 (11:34 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Tue, 17 Jan 2017 11:34:18 +0000 (11:34 +0000)
1  2 
jjb/infra/bifrost-verify-jobs.yml

          - label:
              name: SLAVE_LABEL
              default: 'infra-{type}-{distro}'
+         - string:
+             name: BIFROST_LOG_URL
+             default: 'http://artifacts.opnfv.org/cross-community-ci/openstack/bifrost/$GERRIT_NAME/$GERRIT_CHANGE_NUMBER/$GERRIT_PATCHSET_NUMBER/$JOB_NAME'
  
      scm:
          - git:
              timeout: 10
              wipe-workspace: true
  
 +    triggers:
 +        - '{project}-gerrit-trigger':
 +            branch: '{branch}'
 +
      builders:
-         - description-setter:
-             description: "Built on $NODE_NAME"
-         - shell:
-             !include-raw-escape: ./bifrost-verify.sh
+         - bifrost-set-name
+         - bifrost-build
+         - bifrost-artifacts-upload
  
      publishers:
          - email:
                      exclude-no-code-change: 'false'
                  - comment-added-contains-event:
                      comment-contains-value: 'recheck'
-             custom-url: '* $JOB_NAME $BUILD_URL'
+             custom-url: '* $JOB_NAME $BIFROST_LOG_URL'
              silent-start: true
              projects:
                - project-compare-type: 'PLAIN'
                      comment-contains-value: 'recheck'
                  - comment-added-contains-event:
                      comment-contains-value: 'reverify'
+             custom-url: '* $JOB_NAME $BIFROST_LOG_URL'
              projects:
                - project-compare-type: 'ANT'
                  project-pattern: 'releng'
                    - compare-type: ANT
                      pattern: 'jjb/infra/**'
              readable-message: true
+ #---------------------------
+ # builder macros
+ #---------------------------
+ - builder:
+     name: bifrost-set-name
+     builders:
+         - description-setter:
+             description: "Built on $NODE_NAME"
+ - builder:
+     name: bifrost-build
+     builders:
+         - shell:
+             !include-raw: ./bifrost-verify.sh
+ - builder:
+     name: bifrost-artifacts-upload
+     builders:
+         - shell:
+             !include-raw: ./bifrost-upload-logs.sh