This commit is contained in:
parent
47ac38726f
commit
0a2afee6ee
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -7,7 +7,7 @@ pipeline {
|
|||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './gradlew build publish'
|
||||
sh './gradlew build'
|
||||
}
|
||||
post {
|
||||
success {
|
||||
|
@ -15,5 +15,18 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage('Publish') {
|
||||
when {
|
||||
expression {
|
||||
return sh(returnStdout: true, script: 'git tag --contains').trim().length() > 0
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh './gradlew publish'
|
||||
withCredentials([string(credentialsId: 'curseforge_key', variable: 'CURSEFORGE_KEY')]) {
|
||||
sh './gradlew -Pcurseforge.api_key="${CURSEFORGE_KEY}" curseforge'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user