X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fairship%2Fairship.yaml;h=833ad7479ec6b43267c17ede6ba6c0f6f2053c68;hb=0766872ba98dc6c46bbe2cfac085bb090b279489;hp=dc10d0a9a24d79ee036279740d732c7e6aad4141;hpb=04594c212a266bfc4702daef8272b4b8d8fb3973;p=releng.git diff --git a/jjb/airship/airship.yaml b/jjb/airship/airship.yaml index dc10d0a9a..833ad7479 100644 --- a/jjb/airship/airship.yaml +++ b/jjb/airship/airship.yaml @@ -19,13 +19,6 @@ name: slave default: '{slave}' -- parameter: - name: airship-branch - parameters: - - string: - name: branch - default: '{branch}' - - airship-containers: &airship-containers name: 'airship-containers' repo: '{repo}' @@ -66,6 +59,9 @@ image={repo}:{port}/{container}:{tag} fi docker run --rm \ + -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \ + -e NODE_NAME=intel-pod17 \ + -e INSTALLER_TYPE=airship \ -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \ -e DEBUG=True \ -e EXTERNAL_NETWORK=public \ @@ -73,7 +69,7 @@ -v /home/opnfv/functest/images:/home/opnfv/functest/images \ -v /home/opnfv/functest/tempest_conf.yaml:/usr/lib/python2.7/\ site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml \ - $image run_tests -t {test} + $image run_tests -t {test} -r res=$? gsutil -m cp -r $WORKSPACE/ \ gs://artifacts.opnfv.org/airship/$JOB_NAME-$BUILD_ID > /dev/null 2>&1 @@ -96,6 +92,50 @@ fi docker rmi $image || true +- builder: + name: airship-deploy + builders: + - shell: | + set +x + tools/deploy.sh deploy_site + +- scm: + name: airship-scm + scm: + - git: + url: https://gerrit.opnfv.org/gerrit/airship + refspec: '+refs/changes/*:refs/changes/*' + branches: + - '{ref}' + +- parameter: + name: airship-branch + parameters: + - string: + name: branch + default: '{branch}' + +- job-template: + name: 'airship-deploy-{tag}' + parameters: + - airship-slave: + slave: '{slave}' + - airship-branch: + branch: '{branch}' + scm: + - airship-scm: + ref: $branch + builders: + - airship-deploy + +- project: + name: 'airship-deploy' + tag: + - latest: + branch: master + slave: intel-pod17 + jobs: + - 'airship-deploy-{tag}' - job-template: name: 'airship-{repo}-{container}-{tag}-pull' @@ -278,6 +318,8 @@ parameters: - airship-slave: slave: '{slave}' + - airship-branch: + branch: 'master' properties: - build-blocker: use-build-blocker: true @@ -285,6 +327,11 @@ blocking-jobs: - '^airship-{tag}-(daily|check|gate)$' builders: + - multijob: + name: deploy + projects: + - name: 'airship-deploy-latest' + <<: *airship-jobs - multijob: name: remove former images projects: @@ -313,6 +360,7 @@ <<: *airship-jobs - multijob: name: opnfv/functest-healthcheck:{tag} + condition: ALWAYS projects: - name: 'airship-opnfv-functest-healthcheck-{tag}-connection_check-run' <<: *airship-jobs @@ -340,6 +388,7 @@ <<: *airship-jobs - multijob: name: opnfv/functest-smoke:{tag} + condition: ALWAYS projects: - name: 'airship-opnfv-functest-smoke-{tag}-neutron-tempest-plugin-api-run' <<: *airship-jobs @@ -363,6 +412,7 @@ <<: *airship-jobs - multijob: name: opnfv/functest-benchmarking:{tag} + condition: ALWAYS projects: - name: 'airship-opnfv-functest-benchmarking-{tag}-rally_full-run' <<: *airship-jobs @@ -374,6 +424,7 @@ <<: *airship-jobs - multijob: name: opnfv/functest-vnf:{tag} + condition: ALWAYS execution-type: SEQUENTIALLY projects: - name: 'airship-opnfv-functest-vnf-{tag}-cloudify-run' @@ -388,6 +439,7 @@ <<: *airship-jobs - multijob: name: opnfv/functest-features:{tag} + condition: ALWAYS projects: - name: 'airship-opnfv-functest-features-{tag}-doctor-notification-run' <<: *airship-jobs