Files
refinedstorage/Jenkinsfile
raoulvdberge 636cde0122 Fix branch
2018-05-02 20:31:55 +02:00

18 lines
586 B
Groovy

node {
stage('Preparation') {
git url: 'https://github.com/raoulvdberge/refinedstorage.git', branch: 'master'
}
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'
}
}