From 398e2d25c1ca8cea19d091246cbf785e95156bb4 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Wed, 18 Oct 2017 10:16:02 +0200 Subject: Add source and binary release jobs for EE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I75103b1943f7a2778d4fb1a7e06383e9515566b4 Signed-off-by: Jan-Simon Möller --- ...include-release-jjb-eel-release-move-sandbox.sh | 27 +++++++++++ .../release-jjb-eel-release.yaml | 52 ++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 jjb/release-jjb-eel-release/include-release-jjb-eel-release-move-sandbox.sh create mode 100644 jjb/release-jjb-eel-release/release-jjb-eel-release.yaml (limited to 'jjb/release-jjb-eel-release') diff --git a/jjb/release-jjb-eel-release/include-release-jjb-eel-release-move-sandbox.sh b/jjb/release-jjb-eel-release/include-release-jjb-eel-release-move-sandbox.sh new file mode 100644 index 00000000..2f85a3ea --- /dev/null +++ b/jjb/release-jjb-eel-release/include-release-jjb-eel-release-move-sandbox.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +#set -x +set -e + +if test x"" = x"${RELEASE_BRANCH}"; then + echo "RELEASE_BRANCH invalid" + exit 1 +fi + +if test x"" = x"${RELEASE_VERSION}"; then + echo "RELEASE_VERSION invalid" + exit 1 +fi + + +export REMOTESRC="/srv/download/AGL/upload/ci/${RELEASE_BRANCH}/${RELEASE_VERSION}/" +export REMOTEDST="/srv/download/AGL/release/${RELEASE_BRANCH}/${RELEASE_VERSION}/" + +if test x"yes" = x"$UPLOAD" ; then + ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 mkdir -p ${REMOTEDST} + ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 mv ${REMOTESRC}/* ${REMOTEDST}/ + ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 rm -r ${REMOTESRC} + ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 sh -c "cd /srv/download/AGL/release/${RELEASE_BRANCH}/ ; rm latest ; ln -sf ${RELEASE_VERSION} latest ; echo ${RELEASE_VERSION} > latest.txt" +fi + +exit 0 \ No newline at end of file diff --git a/jjb/release-jjb-eel-release/release-jjb-eel-release.yaml b/jjb/release-jjb-eel-release/release-jjb-eel-release.yaml new file mode 100644 index 00000000..69b8226f --- /dev/null +++ b/jjb/release-jjb-eel-release/release-jjb-eel-release.yaml @@ -0,0 +1,52 @@ +--- +- project: + name: release-jjb-eel-release-from-snapshot + jobs: + - release-jjb-eel-release-from-snapshot + +- job-template: + name: 'release-jjb-eel-release-from-snapshot' + project-type: freestyle + concurrent: false + node: control-slave + + parameters: + - string: + name: GERRIT_PROJECT + default: AGL/AGL-repo + description: "Project to build" + - string: + name: GERRIT_BRANCH + default: master + description: "branch to build" + - string: + name: GERRIT_REFSPEC + default: refs/tags/eel_5.0.0 + description: "refspec to build" + - string: + name: RELEASE_VERSION + default: 5.0.0 + description: "release version number for build" + - string: + name: RELEASE_BRANCH + default: eel + description: "release branch to build" + - string: + name: UPLOAD + default: yes_or_no + description: "Upload?" + + build-discarder: + days-to-keep: 30 + num-to-keep: 40 + artifact-days-to-keep: -1 + artifact-num-to-keep: 5 + + wrappers: + - agl-infra-wrappers: + build-timeout: '{build-timeout}' + + builders: + - shell: + !include-raw-escape: + - include-release-jjb-eel-release-move-sandbox.sh -- cgit 1.2.3-korg