LibAC/Jenkinsfile
2024-09-06 03:08:02 -07:00

46 lines
No EOL
813 B
Groovy

pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage("Build on Linux") {
agent {
label 'linux'
tools {
jdk 'jdk8'
}
}
steps {
script {
sh '''
#!/bin/bash
java --version
chmod +x gradlew
./gradlew build publish
'''
}
}
post {
always {
archiveArtifacts artifacts: "build/libs/*.jar"
deleteDir()
}
}
}
}
}