Last active
January 13, 2017 00:45
-
-
Save HRMPW/0adbadc50e7caeccc5915f635c6bbfc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//assuming that docker-gc is installed on the agent | |
pipeline { | |
agent { | |
label 'mylabel' | |
} | |
stages { | |
stage ("Build") { | |
agent { | |
dockerfile { | |
filename 'Dockerfile' | |
reuseNode true | |
} | |
} | |
steps { | |
echo "Foo" | |
} | |
} | |
} | |
post { | |
always { | |
sh 'docker-gc' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment