forked from Cray-HPE/base-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.github
42 lines (37 loc) · 1.07 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
@Library('csm-shared-library') _
pipeline {
agent {
label "metal-gcp-builder"
}
options {
buildDiscarder(logRotator(numToKeepStr: "10"))
timestamps()
}
environment {
NAME = "base-charts"
DESCRIPTION = "Base subcharts used by other charts."
IS_STABLE = getBuildIsStable()
CHART_NAME_1 = "cray-service"
CHART_NAME_2 = "cray-jobs"
CHART_VERSION_1 = getChartVersion(name: env.CHART_NAME_1, isStable: env.IS_STABLE)
CHART_VERSION_2 = getChartVersion(name: env.CHART_NAME_2, isStable: env.IS_STABLE)
}
stages {
stage("Build") {
parallel {
stage("Charts") {
steps {
sh "make charts"
}
}
}
}
stage("Publish") {
steps {
script {
publishCsmHelmCharts(component: env.NAME, chartsPath: "${WORKSPACE}/kubernetes/.packaged", isStable: env.IS_STABLE)
}
}
}
}
}