forked from jleetutorial/maven-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
34 lines (34 loc) · 1.06 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
pipeline {
agent any
stages {
stage('Build application') {
steps {
sh 'mvn clean package'
}
post {
success {
emailext body: '''<h2 style="color: #2e6c80;">Hi,</h2>
<h4 style="color: #2e6c80;">$DEFAULT_CONTENT</h2>
<h2 style="color: #2e6c80;"> </h2>
<h2 style="color: #2e6c80;">Regards,</h2>
<h2 style="color: #2e6c80;">Dev-OPS Team</h2>
<p><strong> </strong></p>''',
mimeType: 'text/html',
postsendScript: '$DEFAULT_POSTSEND_SCRIPT', presendScript: '$DEFAULT_PRESEND_SCRIPT',
replyTo: '[email protected]', subject: '$DEFAULT_SUBJECT', to: '[email protected]'
}
}
}
stage('Promote To QA') {
input {
message 'Do you want to promote this build to QA?'
ok 'Press here!!!'
submitter 'sumit,vinay,rahul,apiadmin'
submitterParameter 'QaApprover'
}
steps {
echo "Hello, ${QaApprover}, you approved this build."
}
}
}
}