11@Library (' global-jenkins-library@2.3.1' ) _
22
33buildInfo = getBuildInfo()
4- dockerIoVisibility = Registries . EXTERNAL_DOCKERIO_HOST
54
65properties(
76 [
87 buildDiscarder(logRotator(numToKeepStr : ' 10' )),
98 parameters([
10- string(defaultValue : ' 5.7.6 ' , name : ' SCONIFY_VERSION' , trim : true )
9+ string(defaultValue : ' 5.9.1 ' , name : ' SCONIFY_VERSION' , trim : true )
1110 ])
1211 ]
1312)
1413
15- if (params. SCONIFY_VERSION == null || params . SCONIFY_VERSION == ' ' ) {
14+ if (params. SCONIFY_VERSION . isEmpty() ) {
1615 error " SCONIFY_VERSION can't be null or empty"
1716}
1817
@@ -22,38 +21,9 @@ def nativeImage = buildSimpleDocker_v3(
2221 dockerfileDir : baseDir,
2322 buildContext : baseDir,
2423 dockerImageRepositoryName : ' offchain-python-hello-world' ,
25- visibility : dockerIoVisibility
24+ visibility : ' iex.ec '
2625)
2726
28- stage(' Build Gramine' ) {
29- gramineBuildInfo = buildInfo. clone()
30- dockerfileDir = baseDir + ' /gramine'
31- dockerImageRepositoryName = ' tee-offchain-python-hello-world'
32- gramineBuildInfo. imageTag + = ' -gramine'
33- productionImageName = ' '
34- stage(' Build Gramine production image' ) {
35- productionImageName = buildSimpleDocker_v3(
36- buildInfo : gramineBuildInfo,
37- dockerfileDir : dockerfileDir,
38- buildContext : baseDir,
39- dockerImageRepositoryName : dockerImageRepositoryName,
40- visibility : dockerIoVisibility
41- )
42- }
43- stage(' Build Gramine test CA image' ) {
44- testCaSuffix = ' test-ca'
45- gramineBuildInfo. imageTag + = ' -' + testCaSuffix
46- buildSimpleDocker_v3(
47- buildInfo : gramineBuildInfo,
48- dockerfileDir : dockerfileDir,
49- dockerfileFilename : ' Dockerfile.' + testCaSuffix,
50- dockerBuildOptions : ' --build-arg BASE_IMAGE=' + productionImageName,
51- dockerImageRepositoryName : dockerImageRepositoryName,
52- visibility : Registries . EXTERNAL_IEXEC_HOST
53- )
54- }
55- }
56-
5727sconeBuildUnlocked(
5828 nativeImage : nativeImage,
5929 imageName : ' offchain-python-hello-world' ,
0 commit comments