Skip to content

Commit

Permalink
Refactor: Jenkinsfile
Browse files Browse the repository at this point in the history
Added conversion to Java 21 to 11 before and after mvn command respectively
  • Loading branch information
shreelakshmijoshi committed Dec 11, 2024
1 parent e9a5ba1 commit 2032ea7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pipeline {

}
post{

always {

xunit (
Expand Down Expand Up @@ -65,6 +64,7 @@ pipeline {
cleanup{
script{
sh 'sudo rm -rf target/'
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java'
}
}
}
Expand Down Expand Up @@ -111,7 +111,6 @@ pipeline {
}
cleanup{
script{
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java'
sh 'docker compose -f docker-compose.test.yml down --remove-orphans'
}
}
Expand Down Expand Up @@ -162,7 +161,6 @@ pipeline {
steps {
node('built-in') {
script{
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java'
sh 'newman run /var/lib/jenkins/iudx/dmp-apd/Newman/DX-Data-Marketplace-APIs.postman_collection.json -e /home/ubuntu/configs/cd/dmp-apd-postman-env.json --insecure -r htmlextra --reporter-htmlextra-export /var/lib/jenkins/iudx/dmp-apd/Newman/report/cd-report.html --reporter-htmlextra-skipSensitiveData'
}
}
Expand All @@ -171,7 +169,6 @@ pipeline {
always{
node('built-in') {
script{
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: '/var/lib/jenkins/iudx/dmp-apd/Newman/report/', reportFiles: 'cd-report.html', reportTitles: '', reportName: 'Swarm Integration Test Report'])
}
}
Expand Down

0 comments on commit 2032ea7

Please sign in to comment.