]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
create a job to deploy mita 395/head
authorAlfredo Deza <adeza@redhat.com>
Mon, 23 May 2016 20:24:39 +0000 (16:24 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 23 May 2016 21:20:22 +0000 (17:20 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
mita-deploy/build/build [new file with mode: 0644]
mita-deploy/config/definitions/mita-deploy.yml [new file with mode: 0644]

diff --git a/mita-deploy/build/build b/mita-deploy/build/build
new file mode 100644 (file)
index 0000000..5596f3c
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+set -ex
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "ansible" )
+install_python_packages "pkgs[@]"
+
+cd "$WORKSPACE/deploy/playbooks/"
+$VENV/ansible-playbook -i "jenkins.ceph.com," deploy.yml --extra-vars="branch=$BRANCH jenkins_prado_token=$JENKINS_PRADO_TOKEN prado_token=$PRADO_TOKEN"
diff --git a/mita-deploy/config/definitions/mita-deploy.yml b/mita-deploy/config/definitions/mita-deploy.yml
new file mode 100644 (file)
index 0000000..158b394
--- /dev/null
@@ -0,0 +1,48 @@
+- scm:
+    name: mita
+    scm:
+      - git:
+          url: https://github.com/ceph/mita.git
+          branches:
+            - master
+          browser: auto
+          timeout: 20
+          skip-tag: true
+          wipe-workspace: true
+
+- job:
+    name: mita-build
+    description: "This job clones mita and deploys it to its production server based on the BRANCH value"
+    display-name: 'mita-build'
+    logrotate:
+      daysToKeep: -1
+      numToKeep: 25
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+    block-downstream: false
+    block-upstream: false
+    properties:
+      - github:
+          url: https://github.com/ceph/mita
+
+    parameters:
+      - string:
+          name: BRANCH
+          description: "The git branch (or tag) to build, defaults to 'master'"
+          default: "master"
+    scm:
+      - mita
+
+    triggers:
+      - github
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build
+
+    wrappers:
+      - inject-passwords:
+          global: true
+          mask-password-params: true