46 lines
1.5 KiB
Groovy
46 lines
1.5 KiB
Groovy
pipeline {
|
|
agent any
|
|
|
|
tools {
|
|
jdk 'Java-25'
|
|
}
|
|
|
|
stages {
|
|
stage('check java') {
|
|
steps {
|
|
sh 'java -version'
|
|
}
|
|
}
|
|
|
|
stage("build") {
|
|
steps {
|
|
withCredentials([
|
|
usernamePassword(credentialsId: 'jf-repo',
|
|
usernameVariable: 'REPO_USER',
|
|
passwordVariable: 'REPO_PASS')
|
|
]) {
|
|
sh '''
|
|
echo "repoUser=$REPO_USER" > gradle.properties
|
|
echo "repoPassword=$REPO_PASS" >> gradle.properties
|
|
|
|
chmod +x ./gradlew
|
|
./gradlew clean shadowJar webDistribution
|
|
|
|
rm -f gradle.properties
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
stage('archive artifact') {
|
|
steps {
|
|
archiveArtifacts artifacts: 'wcloud-api/build/libs/*.jar', fingerprint: true
|
|
archiveArtifacts artifacts: 'wcloud-plugin/build/libs/*.jar', fingerprint: true
|
|
archiveArtifacts artifacts: 'wcloud-launcher/build/libs/*.jar', fingerprint: true
|
|
archiveArtifacts artifacts: 'build/distributions/wcloud-web.zip', fingerprint: true
|
|
archiveArtifacts artifacts: 'wcloud-runnable/**/build/libs/*.jar', fingerprint: true
|
|
archiveArtifacts artifacts: 'wcloud-modules/**/build/libs/*.jar', fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
}
|