-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.github
45 lines (40 loc) · 1.62 KB
/
Jenkinsfile.github
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@Library('csm-shared-library') _
pipeline {
agent {
label "metal-gcp-builder"
}
options {
buildDiscarder(logRotator(numToKeepStr: "10"))
timestamps()
}
environment {
NAME = "cray-etcd"
DESCRIPTION = "Deploys the etcd operator and other utilities to the Cray system."
IS_STABLE = getBuildIsStable()
}
stages {
stage("Build") {
environment {
CHART_VERSIONS = [
getChartVersion(name: "cray-etcd-backup", chartDirectory: "charts", isStable: env.IS_STABLE),
getChartVersion(name: "cray-etcd-defrag", chartDirectory: "charts", isStable: env.IS_STABLE),
getChartVersion(name: "cray-etcd-base", chartDirectory: "charts", isStable: env.IS_STABLE),
getChartVersion(name: "cray-etcd-migration-setup", chartDirectory: "charts", isStable: env.IS_STABLE),
getChartVersion(name: "cray-etcd-test", chartDirectory: "charts", isStable: env.IS_STABLE)
].join(" ")
}
steps {
withCredentials([usernamePassword(credentialsId: 'artifactory-algol60-readonly', passwordVariable: 'ARTIFACTORY_PASSWORD', usernameVariable: 'ARTIFACTORY_USERNAME')]) {
sh "make"
}
}
}
stage("Publish") {
steps {
script {
publishCsmHelmCharts(component: env.NAME, chartsPath: "${WORKSPACE}/packages", isStable: env.IS_STABLE)
}
}
}
}
}