Guest User

Untitled

a guest
Feb 18th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // Builds the Docker image ---> successful
  2. def flywayImage = docker.build("myFlyway", "-f ${WORKSPACE}@script/docker/Dockerfile_flyway ${SQL_TARGET_PATH}")
  3.  
  4. docker.withServer(dockerServer, dockerCredentials) {
  5. // This doesn't work...
  6. docker.image(flywayImage).run("""
  7. --rm
  8. --network=db-net
  9. -url=jdbc:mariadb://host/db
  10. -table=schema_version
  11. -user=db_user
  12. -password=db_pass
  13. -connectRetries=60
  14. info
  15. """)
  16. }
  17.  
  18. groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.docker.workflow.Docker.image() is applicable for argument types: (org.jenkinsci.plugins.docker.workflow.Docker$Image) values: [org.jenkinsci.plugins.docker.workflow.Docker$Image@435f5bf3]
Add Comment
Please, Sign In to add comment