Guest User

Untitled

a guest
Sep 12th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. node {
  2. def app
  3.  
  4. stage('Clone repository') {
  5. /* Let's make sure we have the repository cloned to our workspace */
  6. checkout scm
  7. }
  8.  
  9. stage('Build and Push image') {
  10. docker.withRegistry('https://container-registry.oracle.com', 'container-hub-credentials') {
  11. sh """
  12. echo `pwd`
  13.  
  14. """
  15. }
  16.  
  17.  
  18. docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') {
  19. sh """
  20. echo `pwd`
  21. docker build --build-arg ADMIN_PASS=weblogic123 --build-arg ADMIN_USER=weblogic -t wls-12213-domain .
  22. docker build -t leexha/wls-12213-oow-demo-domain -f Dockerfile.adddemoapps .
  23. docker build -t leexha/oow-demo-webhook -f Dockerfile.webhook .
  24. docker push leexha/wls-12213-oow-demo-domain
  25. docker push leexha/oow-demo-webhook
  26.  
  27.  
  28. """
  29. }
  30. }
  31. }
  32.  
  33. denied: requested access to the resource is denied
Add Comment
Please, Sign In to add comment