Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. stage('Clone repository') {
  2. /* Cloning the Repository to our Workspace */
  3.  
  4. checkout scm
  5. }
  6.  
  7. stage('Build image') {
  8. /* This builds the actual image */
  9.  
  10. app = docker.build("mendel/nodeapp7")
  11. }
  12.  
  13. stage('run image') {
  14. /* This builds the actual image */
  15.  
  16. app.run("--name pngimage_build_${env.BUILD_NUMBER} -i -t -p 80:80")
  17. }
  18.  
  19. stage('Test image') {
  20.  
  21. app.inside {
  22. echo "Tests passed"
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement