File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ common-unused:
197
197
.PHONY: common-build
198
198
common-build: promu
199
199
@echo ">> building binaries"
200
+ @env
200
201
CGO_ENABLED=1 GOEXPERIMENT=boringcrypto $(PROMU) build --prefix $(PREFIX) $(PROMU_BINARIES)
201
202
202
203
.PHONY: common-tarball
Original file line number Diff line number Diff line change @@ -11,19 +11,21 @@ pipeline {
11
11
environment {
12
12
registryCredential = ' jenkins-artifactory'
13
13
ARTIFACTORY_URL = ' docker.internal.sysdig.com'
14
+ CGO_ENABLED = ' 1'
15
+ GOEXPERIMENT = ' boringcrypto'
14
16
}
15
17
16
18
parameters {
17
19
booleanParam(name : ' DRY_RUN' , defaultValue : true , description : ' Perform a dry run (does not push images)' )
18
20
string(name : ' EXPORTER' , defaultValue : " exporter" , description : ' Exporter name' )
19
21
}
20
-
22
+
21
23
stages {
22
24
stage(' Pull image from artifactory' ) {
23
25
agent any
24
26
steps {
25
27
script {
26
- docker. withRegistry(" https://${ env.ARTIFACTORY_URL} " , registryCredential) {
28
+ docker. withRegistry(" https://${ env.ARTIFACTORY_URL} " , registryCredential) {
27
29
sh """ docker pull ${ env.ARTIFACTORY_URL} /${ env.EXPORTER} :latest"""
28
30
env. VERSION = sh(script :""" docker inspect --format '{{ index .Config.Labels "release" }}' ${ env.ARTIFACTORY_URL} /${ env.EXPORTER} :latest""" , returnStdout : true ). trim()
29
31
echo " VERSION = ${ env.VERSION} "
@@ -53,4 +55,4 @@ pipeline {
53
55
}
54
56
}
55
57
} // stages
56
- }
58
+ }
You can’t perform that action at this time.
0 commit comments