Update Jenkinsfile

This commit is contained in:
prasannakumar 2024-06-16 20:04:32 +05:30 committed by GitHub
parent 751ce8e646
commit d46566c33b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

19
Jenkinsfile vendored
View file

@ -39,25 +39,6 @@ pipeline {
sh 'mvn clean package -DskipTests' sh 'mvn clean package -DskipTests'
} }
} }
stage('OWASP Dependency-Check') {
steps {
dependencyCheck additionalArguments: '--scan target/', odcInstallation: 'OWASP Check'
}
}
stage('Build & push Docker Image') {
when {
branch 'Release'
}
steps {
script {
withDockerRegistry(credentialsId: 'c9b058e5-bfe6-41f8-9b5d-dc0b0d2955ac', toolName: 'docker') {
sh "docker build -t prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER} -f .devcontainer/Dockerfile ."
sh "docker push prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER}"
}
}
}
}
} }
} }