summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2017-04-13 09:40:41 +0530
committerNigel Babu <nigelb@redhat.com>2017-11-14 08:42:32 +0000
commit0ce421101fee9a61ac0b207777cff059c7bcbab6 (patch)
treee485974d3f925d00615c4dbb1cdc6556df614b34
parent4fe98f4f7eb896052dd14c202be8e040286b2394 (diff)
Add the new release job that will run on nodes
This job eliminates the need for a lot of code. * SCM handled by Jenkins-Gerrit directly * Emails handled by Email-Ext Change-Id: Idf241d8b4937639494f12d0620001a20e11df735
-rw-r--r--build-gluster-org/jobs/release-new.yml58
-rw-r--r--build-gluster-org/scripts/release.sh7
2 files changed, 65 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/release-new.yml b/build-gluster-org/jobs/release-new.yml
new file mode 100644
index 0000000..e3288e4
--- /dev/null
+++ b/build-gluster-org/jobs/release-new.yml
@@ -0,0 +1,58 @@
+- job:
+ name: release-new
+ node: smoke7
+ description: glusterfs release script
+ project-type: freestyle
+
+ scm:
+ - glusterfs
+
+ properties:
+ - one-build-per-node
+
+ parameters:
+ - string:
+ default: v3.10.0
+ description: Refspec to "git checkout" as the release code snapshot. Typically
+ a git annotated tag like "v3.10.0". Specifying a branch name will use the
+ current HEAD of that branch.
+ name: GERRIT_REFSPEC
+ - string:
+ default: 3.10.0
+ description: Version name to be assigned to the release.
+ name: RELEASE_VERSION
+ - string:
+ default: packaging@gluster.org,maintainers@gluster.org
+ description: Mail addresses to send the announcement of the tarball too.
+ name: ANNOUNCE_EMAIL
+
+ publishers:
+ - archive:
+ allow-empty: false
+ artifacts: "*.tar.gz"
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - archive:
+ allow-empty: false
+ artifacts: "*.sha256sum"
+ default-excludes: true
+ fingerprint: false
+ only-if-success: false
+ - email-ext:
+ recipients: $ANNOUNCE_EMAIL
+ subject: "glusterfs-${RELEASE_VERSION} released"
+ body: |
+ SRC: ${BUILD_URL}artifact/glusterfs-${ENV,var="RELEASE_VERSION"}.tar.gz
+ HASH: ${BUILD_URL}artifact/glusterfs-${ENV,var="RELEASE_VERSION"}.sha256sum
+
+ This release is made off jenkins-release-${BUILD_ID}
+ save-output: true
+ failure: false
+ success: true
+
+ builders:
+ - shell: !include-raw: ../scripts/release.sh
+
+ wrappers:
+ - timestamps
diff --git a/build-gluster-org/scripts/release.sh b/build-gluster-org/scripts/release.sh
new file mode 100644
index 0000000..2c510c5
--- /dev/null
+++ b/build-gluster-org/scripts/release.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+set -xe
+
+./autogen.sh;
+./configure --enable-fusermount --enable-gnfs
+make dist
+sha512sum glusterfs-$RELEASE_VERSION.tar.gz > glusterfs-$RELEASE_VERSION.sha512sum