Skip to content

Commit

Permalink
Merge pull request #8 from lat-lon/main
Browse files Browse the repository at this point in the history
Added credentials to git command and archive war files
  • Loading branch information
tfr42 authored Feb 3, 2022
2 parents 9e03542 + 4fb604a commit 78183ae
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions jenkinsfiles/build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ pipeline {
}
stages {
stage('Preparation') {
steps{
steps {
deleteDir()
git url: '[email protected]:deegree/deegree-ogcapi.git', branch: '${BRANCH}'
git url: '[email protected]:deegree/deegree-ogcapi.git', credentialsId: 'deegree-ci', branch: '${BRANCH}'
sh 'mvn --version'
sh 'java -version'
sh 'mkdir ./mvn_local_repo'
}
}
Expand All @@ -24,11 +25,13 @@ pipeline {
always {
junit '**/target/surefire-reports/*.xml'
}
success {
archiveArtifacts artifacts: 'deegree-ogcapi-webapp/**/*.war'
}
}
stage('Deploy') {
steps{
sh 'mvn deploy -Dskip.unit.tests=true'
steps {
sh 'mvn deploy -Dskip.unit.tests=true -pl :deegree-ogcapi-webapp-postgres,:deegree-ogcapi-webapp-oracle'
}
}
}
Expand Down

0 comments on commit 78183ae

Please sign in to comment.