mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-05 20:00:55 +01:00
build scm-packaging only during deployment
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -62,13 +62,14 @@ node('docker') {
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
mvn 'clean install -DskipTests'
|
||||
// we exclude scm-packaging and scm-it to speed-up build
|
||||
mvn 'clean install -DskipTests -pl !scm-packaging,!scm-it'
|
||||
}
|
||||
|
||||
parallel(
|
||||
unitTest: {
|
||||
stage('Unit Test') {
|
||||
mvn 'test -DskipFrontendBuild -DskipTypecheck -Pcoverage -pl !scm-it -Dmaven.test.failure.ignore=true'
|
||||
mvn 'test -DskipFrontendBuild -DskipTypecheck -Pcoverage -pl !scm-packaging,!scm-it -Dmaven.test.failure.ignore=true'
|
||||
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/TEST-*.xml,**/target/jest-reports/TEST-*.xml'
|
||||
}
|
||||
},
|
||||
@@ -113,7 +114,7 @@ node('docker') {
|
||||
releaseRepository: '/repository/releases/',
|
||||
type: 'Configurable'
|
||||
])
|
||||
mvn.deployToNexusRepository()
|
||||
mvn.deployToNexusRepository("-pl !scm-packaging,!scm-it")
|
||||
|
||||
// deploy frontend bits
|
||||
withCredentials([string(credentialsId: 'cesmarvin_npm_token', variable: 'NPM_TOKEN')]) {
|
||||
@@ -132,6 +133,9 @@ node('docker') {
|
||||
sh "mv .git.disabled .git"
|
||||
}
|
||||
}
|
||||
|
||||
// deploy packages
|
||||
mvn "-rf :scm-packaging -pl '!scm-it' deploy"
|
||||
}
|
||||
|
||||
stage('Presentation Environment') {
|
||||
|
||||
Reference in New Issue
Block a user