LibAC/Jenkinsfile

45 lines
800 B
Text
Raw Normal View History

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