-
Notifications
You must be signed in to change notification settings - Fork 20
/
test.groovy
33 lines (32 loc) · 1.07 KB
/
test.groovy
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
pipeline {
agent any
stages {
stage('Get Source Code') {
steps {
git credentialsId: '291a3c49-fa9f-409c-ad87-cae9c219fcf6', url: 'https://github.com/veerpatil/JenkinsDemo.git'
echo 'Hello World'
}
}
stage('Build code')
{
steps
{
bat script: 'mvn compile'
}
}
stage('Run Test')
{
steps
{
bat script: 'mvn test -Dbrowser=localchrome'
}
}
stage('Publish Report')
{
steps
{
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: '', reportFiles: 'target/surefire-reports/Extent*.html', reportName: 'Pipeline', reportTitles: ''])
}
}
}
}