-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
31 lines (27 loc) · 1.01 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!groovy
pipeline {
agent none
parameters {
string(name: 'RELEASE_VERSION', defaultValue: '', description: 'Release version number for artifacts')
}
options {
buildDiscarder(logRotator(numToKeepStr: '20', artifactDaysToKeepStr: '7', artifactNumToKeepStr: '5'))
timeout(time: 1, unit: 'HOURS')
timestamps()
ansiColor('xterm')
}
stages {
stage('Push Operator Blueprints to Dist server') {
agent {
node {
label 'helm-chart'
}
}
steps {
checkout scm
sh "echo 'Release version: ${params.RELEASE_VERSION}'"
sh "rsync -razv --delete --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r --include='/xl-infra/***' --include='/xl-op/***' --include='index.json' --exclude='*' . ${env.DIST_SERVER_USER}@${env.DIST_SERVER_HOSTNAME}:/var/www/dist.xebialabs.com/public/xl-op-blueprints/${params.RELEASE_VERSION}"
}
}
}
}