Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groovy.lang.MissingMethodException: No signature of method Script1.sh() is applicable for argument types: (Java.lang.String) values: "docker login -u... and so on"
- def dockerImage = 'ourRegistry/deploy/azure'
- def output = []
- try {
- sh 'docker login -u="our_robot_user" -p="TOKEN" ourRegistry && docker pull ${dockerImage}'
- dockerRun = docker.image(dockerImage).withRun('--env-file=azure.env')
- dockerRun.inside("-u devci") {
- output.push("INSIDEEEEEE")
- //res = sh(returnStdout: true, script: 'az acr repository show-tags --name xx --subscription "xx" --repository "xx"')
- //output.push(res)
- }
- } catch (error) {
- output.push(error)
- }
- return output
Add Comment
Please, Sign In to add comment