Prepare for CI setup
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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"
|
||||
}
|
||||
}
|
||||
|
@@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user