Prepare for CI setup

This commit is contained in:
raoulvdberge
2019-11-04 18:51:43 +01:00
parent 13716ebc14
commit 08f1fc051d
2 changed files with 4 additions and 4 deletions

4
Jenkinsfile vendored
View File

@@ -10,14 +10,10 @@ node {
sh "./gradlew clean"
}
stage('Build') {
sh "./gradlew setupCIWorkspace"
sh "./gradlew build"
}
}
stage('Archive artifacts') {
archiveArtifacts 'build/libs/*.jar'
}
stage('Publish artifacts') {
sh "./gradlew publish"
}
}

View File

@@ -23,6 +23,10 @@ apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = '1.7.1'
def env = System.getenv()
if (env.BUILD_NUMBER) {
version = version + "-" + "${env.BUILD_NUMBER}"
}
group = 'com.raoulvdberge'
archivesBaseName = 'refinedstorage'