-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile.github
40 lines (35 loc) · 1.03 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
@Library('csm-shared-library') _
pipeline {
agent {
label "metal-gcp-builder"
}
options {
buildDiscarder(logRotator(numToKeepStr: "10"))
timestamps()
}
environment {
NAME = "cray-vault"
DESCRIPTION = "Deploys and configures Vault for the Cray system."
IS_STABLE = getBuildIsStable()
}
stages {
stage("Build") {
environment {
CHART_VERSIONS = [
getChartVersion(name: "cray-vault-operator", chartDirectory: "charts", isStable: env.IS_STABLE),
getChartVersion(name: "cray-vault", chartDirectory: "charts", isStable: env.IS_STABLE)
].join(" ")
}
steps {
sh "make"
}
}
stage("Publish") {
steps {
script {
publishCsmHelmCharts(component: env.NAME, chartsPath: "${WORKSPACE}/packages", isStable: env.IS_STABLE)
}
}
}
}
}