2024-09-06 02:56:22 -07:00
|
|
|
pipeline {
|
2024-09-06 03:09:26 -07:00
|
|
|
agent any {
|
|
|
|
tools {
|
|
|
|
jdk 'jdk8'
|
|
|
|
}
|
|
|
|
}
|
2024-09-06 02:56:22 -07:00
|
|
|
|
|
|
|
options {
|
|
|
|
buildDiscarder(
|
|
|
|
logRotator(
|
|
|
|
numToKeepStr: '5'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage("Build on Linux") {
|
|
|
|
agent {
|
|
|
|
label 'linux'
|
|
|
|
}
|
|
|
|
|
2024-09-06 03:03:55 -07:00
|
|
|
|
2024-09-06 02:56:22 -07:00
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh '''
|
|
|
|
#!/bin/bash
|
|
|
|
|
2024-09-06 03:01:10 -07:00
|
|
|
java --version
|
|
|
|
|
2024-09-06 02:56:22 -07:00
|
|
|
chmod +x gradlew
|
|
|
|
./gradlew build publish
|
|
|
|
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: "build/libs/*.jar"
|
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|