mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-11-14 19:34:54 -05:00
40 lines
No EOL
1.1 KiB
Groovy
40 lines
No EOL
1.1 KiB
Groovy
pipeline {
|
|
agent any
|
|
environment {
|
|
GITHUB_BRANCH = "${GIT_BRANCH.split('/').size() > 1 ? GIT_BRANCH.split('/')[1..-1].join('/') : GIT_BRANCH}"
|
|
}
|
|
options {
|
|
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
|
|
}
|
|
stages {
|
|
stage('applyPatches') {
|
|
steps {
|
|
withGradle {
|
|
sh './gradlew applyPatches --no-daemon'
|
|
}
|
|
}
|
|
}
|
|
stage('paperclipJar') {
|
|
steps {
|
|
withGradle {
|
|
sh './gradlew createReobfPaperclipJar --no-daemon'
|
|
}
|
|
}
|
|
}
|
|
stage('test') {
|
|
steps {
|
|
withGradle {
|
|
sh './gradlew test --no-daemon'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: 'build/libs/Scissors-paperclip-*.jar', fingerprint: true
|
|
junit 'Scissors-Server/build/test-results/test/*.xml'
|
|
junit 'Scissors-API/build/test-results/test/*.xml'
|
|
cleanWs()
|
|
}
|
|
}
|
|
} |