Files
refinedstorage/Jenkinsfile
Frank Spijkerman 4e73891f99 removed bintray and replaced it with a local mvn repos (#1785)
* removed bintray and replaced it with a local mvn repos

* checkout scm

* publish stage in Jenkinsfile
2018-05-13 12:08:51 +02:00

21 lines
581 B
Groovy

node {
stage('Preparation') {
checkout scm
}
cache(maxCacheSize: 250, caches: [
[$class: 'ArbitraryFileCache', excludes: 'modules-2/modules-2.lock,*/plugin-resolution/**', includes: '**/*', path: '${HOME}/.gradle/caches'],
[$class: 'ArbitraryFileCache', excludes: '', includes: '**/*', path: '${HOME}/.gradle/wrapper']
]) {
stage('Build') {
sh "./gradlew setupCIWorkspace"
sh "./gradlew build"
}
}
stage('Archive artifacts') {
archiveArtifacts 'build/libs/*.jar'
}
stage('Publish artifacts') {
sh "./gradlew publish"
}
}