Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node {
- def app
- stage('Clone repository') {
- /* Let's make sure we have the repository cloned to our workspace */
- checkout scm
- }
- stage('Build and Push image') {
- docker.withRegistry('https://container-registry.oracle.com', 'container-hub-credentials') {
- sh """
- echo `pwd`
- """
- }
- docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') {
- sh """
- echo `pwd`
- docker build --build-arg ADMIN_PASS=weblogic123 --build-arg ADMIN_USER=weblogic -t wls-12213-domain .
- docker build -t leexha/wls-12213-oow-demo-domain -f Dockerfile.adddemoapps .
- docker build -t leexha/oow-demo-webhook -f Dockerfile.webhook .
- docker push leexha/wls-12213-oow-demo-domain
- docker push leexha/oow-demo-webhook
- """
- }
- }
- }
- denied: requested access to the resource is denied
Add Comment
Please, Sign In to add comment