From 0c83f1021b37959a94a199385e1d5e1025951fee Mon Sep 17 00:00:00 2001 From: Misha H Ali Date: Thu, 13 Aug 2015 11:22:18 +1000 Subject: [PATCH 1/2] Added docs team GH usernames to request access. --- jbdevstudio-teams/pullonly.team | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jbdevstudio-teams/pullonly.team b/jbdevstudio-teams/pullonly.team index 29e1e9c..ed12e68 100644 --- a/jbdevstudio-teams/pullonly.team +++ b/jbdevstudio-teams/pullonly.team @@ -28,6 +28,7 @@ ljelinkova maxandersen michellemurray mickaelistria +mishaone mlabuda mmalina mmusaji @@ -43,6 +44,7 @@ robstryker sbunciak scabanovich snjeza +supriya-bharadwaj vpakan vrubezhny xcoulon From 1acde0d5498dea0db881a49d91c0a02af8f5e487 Mon Sep 17 00:00:00 2001 From: mishaone Date: Thu, 12 Oct 2017 06:00:19 +0000 Subject: [PATCH 2/2] Adding pipeline --- Jenkinsfile | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..ebe1a79 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,57 @@ +#!/usr/bin/groovy +@Library('github.com/fabric8io/fabric8-pipeline-library@master') +def canaryVersion = "1.0.${env.BUILD_NUMBER}" +def utils = new io.fabric8.Utils() +def stashName = "buildpod.${env.JOB_NAME}.${env.BUILD_NUMBER}".replace('-', '_').replace('/', '_') +def envStage = utils.environmentNamespace('stage') +def envProd = utils.environmentNamespace('run') + +mavenNode { + checkout scm + if (utils.isCI()){ + + mavenCI{} + + } else if (utils.isCD()){ + echo 'NOTE: running pipelines for the first time will take longer as build and base docker images are pulled onto the node' + container(name: 'maven') { + + stage('Build Release'){ + mavenCanaryRelease { + version = canaryVersion + } + //stash deployment manifests + stash includes: '**/*.yml', name: stashName + } + + stage('Rollout to Stage'){ + apply{ + environment = envStage + } + } + } + } +} + +if (utils.isCD()){ + node { + stage('Approve'){ + approve { + room = null + version = canaryVersion + environment = 'Stage' + } + } + } + + clientsNode{ + container(name: 'clients') { + stage('Rollout to Run'){ + unstash stashName + apply{ + environment = envProd + } + } + } + } +} \ No newline at end of file