From 28b12178cef2db7be75f7558c9758d8a70ef67c7 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Wed, 2 May 2018 20:29:50 +0200 Subject: [PATCH] Add jenkinsfile --- Jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..6912d8b1f --- /dev/null +++ b/Jenkinsfile @@ -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' + } +}