From 0ce421101fee9a61ac0b207777cff059c7bcbab6 Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Thu, 13 Apr 2017 09:40:41 +0530 Subject: 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 --- build-gluster-org/jobs/release-new.yml | 58 ++++++++++++++++++++++++++++++++++ build-gluster-org/scripts/release.sh | 7 ++++ 2 files changed, 65 insertions(+) create mode 100644 build-gluster-org/jobs/release-new.yml create mode 100644 build-gluster-org/scripts/release.sh 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 -- cgit