@@ -29,7 +29,6 @@ pipeline {
2929 }
3030 }
3131 steps {
32- println (" Build tag : " + env. TAG_NAME )
3332 script {
3433 try {
3534 sh " npm ci --production=false --no-progress"
@@ -118,6 +117,107 @@ pipeline {
118117 }
119118
120119 stage(" Native 1s image" ) {
120+ when {
121+ expression {
122+ env. TAG_NAME != null && env. TAG_NAME . toString(). contains(buildWhenTagContains)
123+ }
124+ }
125+ steps {
126+ script {
127+ openethereumNative1secImage = docker. build(
128+ registry + " /poco-chain:native-${ TAG_NAME} " ,
129+ " --file testchains/openethereum.dockerfile" \
130+ + " --build-arg \" MNEMONIC=actual surround disorder swim upgrade devote digital misery truly verb slide final\" " \
131+ + " --build-arg CHAIN_TYPE=native" \
132+ + " --build-arg CHAIN_BLOCK_TIME=1" \
133+ + " --build-arg CHAIN_FORCE_SEALING=true" \
134+ + " --no-cache ." )
135+ }
136+ script {
137+ docker. withRegistry(" https://" + registry, " nexus" ) {
138+ openethereumNative1secImage. push()
139+ }
140+ }
141+ }
142+ }
143+
144+ stage(" Token 1s image" ) {
145+ when {
146+ expression {
147+ env. TAG_NAME != null && env. TAG_NAME . toString(). contains(buildWhenTagContains)
148+ }
149+ }
150+ steps {
151+ script {
152+ openethereumToken1secImage = docker. build(
153+ registry + " /poco-chain:token-${ TAG_NAME} " ,
154+ " --file testchains/openethereum.dockerfile" \
155+ + " --build-arg \" MNEMONIC=actual surround disorder swim upgrade devote digital misery truly verb slide final\" " \
156+ + " --build-arg CHAIN_TYPE=token" \
157+ + " --build-arg CHAIN_BLOCK_TIME=1" \
158+ + " --build-arg CHAIN_FORCE_SEALING=true" \
159+ + " --no-cache ." )
160+ }
161+ script {
162+ docker. withRegistry(" https://" + registry, " nexus" ) {
163+ openethereumToken1secImage. push()
164+ }
165+ }
166+ }
167+ }
168+
169+ stage(" Native 5s image" ) {
170+ when {
171+ expression {
172+ env. TAG_NAME != null && env. TAG_NAME . toString(). contains(buildWhenTagContains)
173+ }
174+ }
175+ steps {
176+ script {
177+ openethereumNative5secImage = docker. build(
178+ registry + " /poco-chain:native-${ TAG_NAME} -5s" ,
179+ " --file testchains/openethereum.dockerfile" \
180+ + " --build-arg \" MNEMONIC=actual surround disorder swim upgrade devote digital misery truly verb slide final\" " \
181+ + " --build-arg CHAIN_TYPE=native" \
182+ + " --build-arg CHAIN_BLOCK_TIME=5" \
183+ + " --build-arg CHAIN_FORCE_SEALING=true" \
184+ + " --no-cache ." )
185+ }
186+ script {
187+ docker. withRegistry(" https://" + registry, " nexus" ) {
188+ openethereumNative5secImage. push()
189+ }
190+ }
191+ }
192+ }
193+
194+ stage(" Token 5s image" ) {
195+ when {
196+ expression {
197+ env. TAG_NAME != null && env. TAG_NAME . toString(). contains(buildWhenTagContains)
198+ }
199+ }
200+ steps {
201+ script {
202+ openethereumNative5secImage = docker. build(
203+ registry + " /poco-chain:token-${ TAG_NAME} -5s" ,
204+ " --file testchains/openethereum.dockerfile" \
205+ + " --build-arg \" MNEMONIC=actual surround disorder swim upgrade devote digital misery truly verb slide final\" " \
206+ + " --build-arg CHAIN_TYPE=token" \
207+ + " --build-arg CHAIN_BLOCK_TIME=5" \
208+ + " --build-arg CHAIN_FORCE_SEALING=true" \
209+ + " --no-cache ." )
210+ }
211+ script {
212+ docker. withRegistry(" https://" + registry, " nexus" ) {
213+ openethereumNative5secImage. push()
214+ }
215+ }
216+ }
217+ }
218+
219+
220+ stage(" Native 1s image nethermind" ) {
121221 when {
122222 expression {
123223 env. TAG_NAME != null && env. TAG_NAME . toString(). contains(buildWhenTagContains)
@@ -142,7 +242,7 @@ pipeline {
142242 }
143243 }
144244
145- stage(" Token 1s image" ) {
245+ stage(" Token 1s image nethermind " ) {
146246 when {
147247 expression {
148248 env. TAG_NAME != null && env. TAG_NAME . toString(). contains(buildWhenTagContains)
@@ -167,7 +267,7 @@ pipeline {
167267 }
168268 }
169269
170- stage(" Native 5s image" ) {
270+ stage(" Native 5s image nethermind " ) {
171271 when {
172272 expression {
173273 env. TAG_NAME != null && env. TAG_NAME . toString(). contains(buildWhenTagContains)
@@ -192,7 +292,7 @@ pipeline {
192292 }
193293 }
194294
195- stage(" Token 5s image" ) {
295+ stage(" Token 5s image nethermind " ) {
196296 when {
197297 expression {
198298 env. TAG_NAME != null && env. TAG_NAME . toString(). contains(buildWhenTagContains)
@@ -217,4 +317,4 @@ pipeline {
217317 }
218318 }
219319 }
220- }
320+ }
0 commit comments