@@ -77,28 +77,10 @@ pipeline {
77
77
steps {
78
78
withCredentials([string(credentialsId : ' npm-sentry-dsn' , variable : ' SENTRY_DSN' )]) {
79
79
withCredentials([usernamePassword(credentialsId : ' oss-index-token' , passwordVariable : ' NANCY_TOKEN' , usernameVariable : ' NANCY_USER' )]) {
80
- script {
81
- def shStatusCode = sh(label : ' test-backend' , returnStatus : true , script : '''
82
- set -e
83
- ./scripts/ci/test-backend | sed -r "s/\\ x1B\\ [([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" > ${WORKSPACE}/tmp-sh-build 2>&1
84
- ''' )
85
- shOutput = readFile " ${ env.WORKSPACE} /tmp-sh-build"
86
- if (shStatusCode != 0 ) {
87
- error " ${ shOutput} "
88
- }
89
- }
80
+ sh ' ./scripts/ci/test-backend'
90
81
}
91
82
// Build all the golang binaries
92
- script {
93
- def shStatusCode = sh(label : ' build-backend' , returnStatus : true , script : '''
94
- set -e
95
- ./scripts/ci/build-backend > ${WORKSPACE}/tmp-sh-build 2>&1
96
- ''' )
97
- shOutput = readFile " ${ env.WORKSPACE} /tmp-sh-build"
98
- if (shStatusCode != 0 ) {
99
- error " ${ shOutput} "
100
- }
101
- }
83
+ sh ' ./scripts/ci/build-backend'
102
84
// Build the docker image used for testing below
103
85
sh ''' docker build --pull --no-cache \\
104
86
-t "${IMAGE}:${BRANCH_LOWER}-ci-${BUILD_NUMBER}" \\
@@ -111,12 +93,6 @@ pipeline {
111
93
}
112
94
}
113
95
post {
114
- always {
115
- sh ' rm -f ${WORKSPACE}/tmp-sh-build'
116
- }
117
- failure {
118
- npmGithubPrComment(" CI Error:\n\n ```\n ${ shOutput} \n ```" , true )
119
- }
120
96
success {
121
97
archiveArtifacts allowEmptyArchive : false , artifacts : ' bin/*'
122
98
script {
@@ -136,7 +112,6 @@ pipeline {
136
112
}
137
113
}
138
114
steps {
139
- sh ' docker-compose config'
140
115
sh ' rm -rf ./test/results/junit/*'
141
116
sh ' ./scripts/ci/fulltest-cypress'
142
117
}
@@ -167,7 +142,6 @@ pipeline {
167
142
}
168
143
}
169
144
steps {
170
- sh ' docker-compose config'
171
145
sh ' rm -rf ./test/results/junit/*'
172
146
sh ' ./scripts/ci/fulltest-cypress'
173
147
}
@@ -196,7 +170,6 @@ pipeline {
196
170
}
197
171
}
198
172
steps {
199
- sh ' docker-compose config'
200
173
sh ' rm -rf ./test/results/junit/*'
201
174
sh ' ./scripts/ci/fulltest-cypress'
202
175
}
0 commit comments