40 lines
No EOL
730 B
Groovy
40 lines
No EOL
730 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
buildDiscarder (
|
|
logRotator(numToKeepStr: '5')
|
|
)
|
|
}
|
|
|
|
tools {
|
|
jdk 'jdk21'
|
|
}
|
|
|
|
stages {
|
|
stage("Build") {
|
|
agent {
|
|
label 'linux'
|
|
}
|
|
|
|
steps {
|
|
script {
|
|
sh '''
|
|
#!/bin/bash
|
|
|
|
chmod +x gradlew
|
|
./gradlew build
|
|
./gradlew release
|
|
'''
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: "build/libs/*.jar"
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |