-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
23 lines (23 loc) · 766 Bytes
/
Copy pathJenkinsfile
File metadata and controls
23 lines (23 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pipeline {
agent {
docker {
image 'openjdk:21'
args '-v /root/.gradle:/root/.gradle'
}
}
stages {
stage('Build') {
steps {
sh './gradlew :ts-gradle:publish'
sh './gradlew publish'
script {
try {
archiveArtifacts artifacts: "**/build/libs/*.jar",fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
} catch (Exception err) {
echo err.toString() /* hudson.AbortException: Couldn't find any revision to build. Verify the repository and branch configuration for this job. */
}
}
}
}
}
}