Prepare for CI setup
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -10,14 +10,10 @@ node {
|
|||||||
sh "./gradlew clean"
|
sh "./gradlew clean"
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
sh "./gradlew setupCIWorkspace"
|
|
||||||
sh "./gradlew build"
|
sh "./gradlew build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive artifacts') {
|
stage('Archive artifacts') {
|
||||||
archiveArtifacts 'build/libs/*.jar'
|
archiveArtifacts 'build/libs/*.jar'
|
||||||
}
|
}
|
||||||
stage('Publish artifacts') {
|
|
||||||
sh "./gradlew publish"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ apply plugin: 'eclipse'
|
|||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
version = '1.7.1'
|
version = '1.7.1'
|
||||||
|
def env = System.getenv()
|
||||||
|
if (env.BUILD_NUMBER) {
|
||||||
|
version = version + "-" + "${env.BUILD_NUMBER}"
|
||||||
|
}
|
||||||
group = 'com.raoulvdberge'
|
group = 'com.raoulvdberge'
|
||||||
archivesBaseName = 'refinedstorage'
|
archivesBaseName = 'refinedstorage'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user