Guest User

Untitled

a guest
Jan 17th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. groovy.lang.MissingMethodException: No signature of method Script1.sh() is applicable for argument types: (Java.lang.String) values: "docker login -u... and so on"
  2.  
  3. def dockerImage = 'ourRegistry/deploy/azure'
  4. def output = []
  5. try {
  6. sh 'docker login -u="our_robot_user" -p="TOKEN" ourRegistry && docker pull ${dockerImage}'
  7. dockerRun = docker.image(dockerImage).withRun('--env-file=azure.env')
  8. dockerRun.inside("-u devci") {
  9. output.push("INSIDEEEEEE")
  10. //res = sh(returnStdout: true, script: 'az acr repository show-tags --name xx --subscription "xx" --repository "xx"')
  11. //output.push(res)
  12. }
  13. } catch (error) {
  14. output.push(error)
  15. }
  16. return output
Add Comment
Please, Sign In to add comment