forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJenkinsfile
35 lines (32 loc) · 1.26 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@Library(value='pipeline-library@master', changelog=false)
import com.genesys.jenkins.Service
final serviceBuild = new com.genesys.jenkins.Service()
pipeline {
agent {
node {
label 'dev_mesos_v2'
}
}
stages {
stage('Build') {
steps {
script {
serviceBuild.runMavenGoals('clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -pl modules/openapi-generator-cli -am', true, "OpenJDK 17", "Maven 3.9.5")
}
}
}
}
post{
success{
archiveArtifacts artifacts:'modules/openapi-generator-cli/target/openapi-generator-cli.jar' , fingerprint: true
mail to: '[email protected]',
subject: "Build Success: ${env.JOB_NAME}",
body: "Build Successful ${env.JOB_NAME} \n build: ${env.BUILD_NUMBER}\n\nView the logs at:\n ${env.BUILD_URL}\n\nBlue Ocean:\n${env.RUN_DISPLAY_URL}"
}
failure {
mail to: '[email protected]',
subject: "Build Failed: ${env.JOB_NAME}",
body: "Build failed ${env.JOB_NAME} \n build: ${env.BUILD_NUMBER}.\n\nView the logs at:\n ${env.BUILD_URL}\n\nBlue Ocean:\n${env.RUN_DISPLAY_URL}"
}
}
}