Skip to content

Commit

Permalink
Add archive and deploy steps to Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Aug 23, 2021
1 parent 4075e4a commit e42acf1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
pipeline {
agent any
environment {
ORG_GRADLE_PROJECT_curseforge_apikey = credentials('jei-curseforge-key')
}
stages {
stage('Checkout') {
steps {
Expand All @@ -14,5 +17,17 @@ pipeline {
}
}

stage('Archive') {
steps {
archive includes: 'build/libs/*.jar'
junit allowEmptyResults: true, testResults: 'build/test-results/**/*.xml'
}
}

stage('Deploy') {
steps {
sh "JAVA_HOME=${env.JDK_16} ./gradlew publish curseforge -PBUILD_NUMBER=${env.BUILD_NUMBER} -PDEPLOY_DIR=${env.MAVEN_DEPLOY_DIR} --no-daemon"
}
}
}
}

0 comments on commit e42acf1

Please sign in to comment.