-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from lat-lon/main
Added credentials to git command and archive war files
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
} | ||
} | ||
|
@@ -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' | ||
} | ||
} | ||
} | ||
|