]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: make it possible to run nighly job on custom branch 1338/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Jul 2019 09:35:18 +0000 (11:35 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Jul 2019 09:44:51 +0000 (11:44 +0200)
When running manually a nightly containerized job against a custom branch of
ceph-ansible, it fails because `CEPH_DOCKER_IMAGE_TAG` is not set.

Typical error:
```
+ case "$CEPH_ANSIBLE_BRANCH" in
+ CEPH_DOCKER_IMAGE_TAG=
+ '[' -n '' ']'
Build step 'Execute shell' marked build as failure
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-nightly/build/build
ceph-ansible-nightly/config/definitions/ceph-ansible-nightly.yml

index 0c869f45bfb96a75fcfb4d1d5fef194af7cf750f..ca23621a9df169cce9cc047b63d305e4fd7041e5 100644 (file)
@@ -36,10 +36,7 @@ function run_tox {
       CEPH_DOCKER_IMAGE_TAG=$(find_latest_tag "$RELEASE")
       ;;
     master)
-      CEPH_DOCKER_IMAGE_TAG="latest"
-      ;;
-    *)
-      CEPH_DOCKER_IMAGE_TAG=""
+      CEPH_DOCKER_IMAGE_TAG="latest-master"
       ;;
   esac
 
index 504187a87b9341017e5ef9ecc1e3be000f101ef4..88cfe0583928564b51e2e4bf20065d3dceb80ace 100644 (file)
           name: CEPH_ANSIBLE_BRANCH
           description: "The ceph-ansible branch (or tag) to test"
           default: "{ceph_ansible_branch}"
+      - string:
+          name: CEPH_DOCKER_IMAGE_TAG
+          description: "The ceph-container image tag to use"
+          default: ""
 
     triggers:
       - timed: '@daily'