]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
add new ceph-container-build-ceph-base-push-imgs job 1140/head
authorSébastien Han <seb@redhat.com>
Mon, 1 Oct 2018 12:45:46 +0000 (14:45 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 1 Oct 2018 12:50:58 +0000 (14:50 +0200)
This job runs on a daily basis and is responsible for building ceph/base
versionned images.

Signed-off-by: Sébastien Han <seb@redhat.com>
ceph-container-build-ceph-base-push-imgs/build/build [new file with mode: 0644]
ceph-container-build-ceph-base-push-imgs/config/JENKINS_URL [new file with mode: 0644]
ceph-container-build-ceph-base-push-imgs/config/definitions/ceph-container-build-push-imgs.yml [new file with mode: 0644]

diff --git a/ceph-container-build-ceph-base-push-imgs/build/build b/ceph-container-build-ceph-base-push-imgs/build/build
new file mode 100644 (file)
index 0000000..a162e77
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+set -e
+
+
+cd "$WORKSPACE"/ceph-container/ || exit
+bash -x contrib/build-ceph-base.sh
diff --git a/ceph-container-build-ceph-base-push-imgs/config/JENKINS_URL b/ceph-container-build-ceph-base-push-imgs/config/JENKINS_URL
new file mode 100644 (file)
index 0000000..e97cf67
--- /dev/null
@@ -0,0 +1 @@
+2.jenkins.ceph.com
diff --git a/ceph-container-build-ceph-base-push-imgs/config/definitions/ceph-container-build-push-imgs.yml b/ceph-container-build-ceph-base-push-imgs/config/definitions/ceph-container-build-push-imgs.yml
new file mode 100644 (file)
index 0000000..31102ac
--- /dev/null
@@ -0,0 +1,46 @@
+- job:
+    name: ceph-container-build-ceph-base-push-imgs
+    node: huge && trusty && x86_64
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-container: build and push ceph base container images to Docker Hub'
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    retry-count: 3
+    properties:
+      - build-discarder:
+          days-to-keep: 1
+          num-to-keep: 1
+          artifact-days-to-keep: 1
+          artifact-num-to-keep: 1
+      - github:
+          url: https://github.com/ceph/ceph-container
+
+    triggers:
+      - timed: '@daily'
+
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-container.git
+          branches:
+            - master
+          browser: auto
+          basedir: "ceph-container"
+          timeout: 20
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build
+
+    wrappers:
+      - inject-passwords:
+          global: true
+          mask-password-params: true
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: docker-hub-leseb
+              username: DOCKER_HUB_USERNAME
+              password: DOCKER_HUB_PASSWORD