Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Builds the Docker image ---> successful
- def flywayImage = docker.build("myFlyway", "-f ${WORKSPACE}@script/docker/Dockerfile_flyway ${SQL_TARGET_PATH}")
- docker.withServer(dockerServer, dockerCredentials) {
- // This doesn't work...
- docker.image(flywayImage).run("""
- --rm
- --network=db-net
- -url=jdbc:mariadb://host/db
- -table=schema_version
- -user=db_user
- -password=db_pass
- -connectRetries=60
- info
- """)
- }
- 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