mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-12-16 14:08:44 +01:00
try this instead part 3
This commit is contained in:
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -32,23 +32,22 @@ pipeline {
|
|||||||
usernameVariable: 'NEXUS_USER',
|
usernameVariable: 'NEXUS_USER',
|
||||||
passwordVariable: 'NEXUS_PASS'
|
passwordVariable: 'NEXUS_PASS'
|
||||||
)]) {
|
)]) {
|
||||||
writeFile file: 'settings.xml', text: """
|
configFileProvider([configFile(fileId: 'maven-settings-nexus', variable: 'MAVEN_SETTINGS_TEMPLATE')]) {
|
||||||
<settings>
|
sh '''
|
||||||
<servers>
|
# Expand env vars into a real settings file
|
||||||
<server>
|
envsubst < "$MAVEN_SETTINGS_TEMPLATE" > settings.xml
|
||||||
<id>neetgames</id>
|
|
||||||
<username>${env.NEXUS_USER}</username>
|
mvn -s settings.xml -V -B deploy
|
||||||
<password>${env.NEXUS_PASS}</password>
|
|
||||||
</server>
|
rm -f settings.xml
|
||||||
</servers>
|
'''
|
||||||
</settings>
|
|
||||||
"""
|
|
||||||
sh 'mvn -s settings.xml -V -B deploy'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
archiveArtifacts artifacts: 'target/mcMMO.jar', fingerprint: true
|
archiveArtifacts artifacts: 'target/mcMMO.jar', fingerprint: true
|
||||||
|
|||||||
Reference in New Issue
Block a user