mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-11-14 19:34:54 -05:00
6b23f8bc8f
Only got through one patch as of now. Not publishing JARs to Jenkins for now
49 lines
No EOL
1.4 KiB
Groovy
49 lines
No EOL
1.4 KiB
Groovy
pipeline {
|
|
agent any
|
|
environment {
|
|
GITHUB_BRANCH = "${BRANCH_NAME}"
|
|
}
|
|
stages {
|
|
stage('applyPatches') {
|
|
steps {
|
|
withGradle {
|
|
sh './gradlew applyPatches --no-daemon --refresh-dependencies'
|
|
}
|
|
}
|
|
}
|
|
stage('paperclipJar') {
|
|
steps {
|
|
withGradle {
|
|
sh './gradlew createReobfPaperclipJar --no-daemon --refresh-dependencies'
|
|
}
|
|
}
|
|
}
|
|
stage('test') {
|
|
steps {
|
|
withGradle {
|
|
sh './gradlew test --no-daemon'
|
|
}
|
|
}
|
|
}
|
|
stage('publish') {
|
|
when {
|
|
branch "skip"
|
|
}
|
|
steps {
|
|
withCredentials([usernamePassword(credentialsId: '8150559b-ec1d-41bd-a576-aa668a52c1ba', passwordVariable: 'scissorsPassword', usernameVariable: 'scissorsUser')]) {
|
|
withGradle {
|
|
sh "./gradlew :Scissors-API:publish --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()
|
|
}
|
|
}
|
|
} |