@@ -115,11 +115,7 @@ void resultNotification(message) {
115
115
116
116
void lint () {
117
117
sh '''
118
- # Added to fix 'Context loading failed error'
119
- go get ./...
120
- echo Installing golangci-lint
121
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.0
122
- make lint saveOutput=true path=./bin/
118
+ make lint saveOutput=true
123
119
'''
124
120
125
121
LINT_OUTPUT = sh(returnStdout : true , script : ' echo helm template lint output: ;cat helm-lint-output.txt ;echo all tests lint output: ;cat test-lint-output.txt' ). trim()
@@ -143,6 +139,17 @@ void pullImage() {
143
139
}
144
140
}
145
141
142
+ String getVersionDiv (mlVersion ) {
143
+ switch (mlVersion) {
144
+ case ' 10.0' :
145
+ return ' -'
146
+ case ' 9.0' :
147
+ return ' -'
148
+ default :
149
+ return ' .'
150
+ }
151
+ }
152
+
146
153
pipeline {
147
154
agent {
148
155
label {
@@ -161,13 +168,15 @@ pipeline {
161
168
timeStamp = sh(returnStdout : true , script : " date +%Y%m%d -d '-5 hours'" ). trim()
162
169
dockerRegistry = ' ml-docker-dev.marklogic.com'
163
170
dockerRepository = " ${ dockerRegistry} /marklogic/marklogic-server-centos"
164
- dockerVersion = " ${ ML_VERSION} -${ timeStamp} -centos-1.0.0"
171
+ dockerVerDivider = getVersionDiv(params. ML_VERSION )
172
+ dockerVersion = " ${ ML_VERSION}${ dockerVerDivider}${ timeStamp} -centos-${ dockerReleaseVer} "
165
173
}
166
174
167
175
parameters {
168
176
string(name : ' emailList' , defaultValue : emailList, description : ' List of email for build notification' , trim : true )
169
- choice(name : ' ML_VERSION' , choices : ' 10 .0\n 11 .0\n 9.0' , description : ' MarkLogic version. used to pick appropriate docker image' )
177
+ choice(name : ' ML_VERSION' , choices : ' 11 .0\n 12.0 \n 10 .0\n 9.0' , description : ' MarkLogic version. used to pick appropriate docker image' )
170
178
booleanParam(name : ' KUBERNETES_TESTS' , defaultValue : true , description : ' Run kubernetes tests' )
179
+ string(name : ' dockerReleaseVer' , defaultValue : ' 1.0.1' , description : ' Current Docker version. (e.g. 1.0.1)' , trim : true )
171
180
}
172
181
173
182
stages {
0 commit comments