declarative pipelines require all wor to be in script block

This commit is contained in:
2022-02-18 12:32:52 -06:00
parent 361a620085
commit 276db59979

View File

@@ -1,11 +1,11 @@
#!groovy
def pushArtifact (Map config) {
def ws = pwd()
stage ("Push Artifact: " + config.fileName) {
steps {
container ("alpine") {
script {
def ws = pwd()
sh "apk add --no-cache curl"
withCredentials([usernameColonPassword(
credentialsId: config.repoCreds,