Add jenkinsfile
This commit is contained in:
17
Jenkinsfile
vendored
Normal file
17
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
node {
|
||||
stage('Preparation') {
|
||||
git url: 'https://github.com/fspijkerman/refinedstorage.git', branch: 'jenkins'
|
||||
}
|
||||
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'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user