Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docs team GH usernames to request access. #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
}
2 changes: 2 additions & 0 deletions jbdevstudio-teams/pullonly.team
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ljelinkova
maxandersen
michellemurray
mickaelistria
mishaone
mlabuda
mmalina
mmusaji
Expand All @@ -43,6 +44,7 @@ robstryker
sbunciak
scabanovich
snjeza
supriya-bharadwaj
vpakan
vrubezhny
xcoulon
Expand Down