Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage('Clone repository') {
- /* Cloning the Repository to our Workspace */
- checkout scm
- }
- stage('Build image') {
- /* This builds the actual image */
- app = docker.build("mendel/nodeapp7")
- }
- stage('run image') {
- /* This builds the actual image */
- app.run("--name pngimage_build_${env.BUILD_NUMBER} -i -t -p 80:80")
- }
- stage('Test image') {
- app.inside {
- echo "Tests passed"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement