moves variable set to script block
This commit is contained in:
parent
8fe6aa5e96
commit
58df2c1150
@ -32,9 +32,9 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage ('Initalize Jenkins') {
|
stage ('Initalize Jenkins') {
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
workspace = pwd()
|
workspace = pwd()
|
||||||
container ('alpine') {
|
container ('alpine') {
|
||||||
script {
|
|
||||||
sh """
|
sh """
|
||||||
if [ ! -f "/usr/bin/curl" ] || [ ! -x "/usr/bin/curl" ]; then
|
if [ ! -f "/usr/bin/curl" ] || [ ! -x "/usr/bin/curl" ]; then
|
||||||
apk add --no-cache curl
|
apk add --no-cache curl
|
||||||
|
Reference in New Issue
Block a user