diff options
author | LexManos <LexManos@gmail.com> | 2021-01-17 17:55:23 -0800 |
---|---|---|
committer | LexManos <LexManos@gmail.com> | 2021-01-17 17:55:23 -0800 |
commit | 28190035b0b547968a6f430200957dda8a0b846e (patch) | |
tree | 4167a00118cac1660985f99d69292fe2ceb74dab | |
parent | 4089917696fffbd4b818fb90958d20f0714f93fb (diff) | |
download | Artifactural-28190035b0b547968a6f430200957dda8a0b846e.tar.gz Artifactural-28190035b0b547968a6f430200957dda8a0b846e.tar.bz2 Artifactural-28190035b0b547968a6f430200957dda8a0b846e.zip |
Fix Jenkinsfile
-rw-r--r-- | Jenkinsfile | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 0729868..ff1ebbf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -//@Library('forge-shared-library')_ +@Library('forge-shared-library')_ pipeline { agent { @@ -35,17 +35,11 @@ pipeline { steps { sh './gradlew ${GRADLE_ARGS} --refresh-dependencies --continue build test' script { + env.MYGROUP = sh(returnStdout: true, script: './gradlew properties -q | grep "group:" | awk \'{print $2}\'').trim() + env.MYARTIFACT = sh(returnStdout: true, script: './gradlew properties -q | grep "name:" | awk \'{print $2}\'').trim() env.MYVERSION = sh(returnStdout: true, script: './gradlew properties -q | grep "version:" | awk \'{print $2}\'').trim() } } - /* - post { - success { - writeChangelog(currentBuild, 'build/changelog.txt') - archiveArtifacts artifacts: 'build/changelog.txt', fingerprint: false - } - } - */ } stage('publish') { when { @@ -58,7 +52,7 @@ pipeline { } steps { sh './gradlew ${GRADLE_ARGS} publish -PmavenUser=${FORGE_MAVEN_USR} -PmavenPassword=${FORGE_MAVEN_PSW}' - sh 'curl --user ${FORGE_MAVEN} http://files.minecraftforge.net/maven/manage/promote/latest/net.minecraftforge.artifactural/${MYVERSION}' + sh 'curl --user ${FORGE_MAVEN} https://files.minecraftforge.net/maven/manage/promote/latest/${MYGROUP}.${MYARTIFACT}/${MYVERSION}' } } } |