mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-12-16 05:58:47 +01:00
test number who knows
This commit is contained in:
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@@ -26,21 +26,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy to Nexus') {
|
stage('Deploy to Nexus') {
|
||||||
steps {
|
stage('Deploy to Nexus') {
|
||||||
withCredentials([usernamePassword(
|
steps {
|
||||||
credentialsId: 'nexus-deployer',
|
configFileProvider([configFile(fileId: 'maven-settings-nexus', variable: 'MAVEN_SETTINGS')]) {
|
||||||
usernameVariable: 'NEXUS_USER',
|
sh 'mvn -s "$MAVEN_SETTINGS" -V -B deploy'
|
||||||
passwordVariable: 'NEXUS_PASS'
|
|
||||||
)]) {
|
|
||||||
configFileProvider([configFile(fileId: 'maven-settings-nexus', variable: 'MAVEN_SETTINGS_TEMPLATE')]) {
|
|
||||||
sh '''
|
|
||||||
# Expand env vars into a real settings file
|
|
||||||
envsubst < "$MAVEN_SETTINGS_TEMPLATE" > settings.xml
|
|
||||||
|
|
||||||
mvn -s settings.xml -V -B deploy
|
|
||||||
|
|
||||||
rm -f settings.xml
|
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user