-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
29 lines (29 loc) · 1001 Bytes
/
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
pipeline {
agent { label 'QualIT-win' }
stages {
stage('Clean workspace') {
steps {
cleanWs()
}
}
stage('Checkout') {
steps {
checkout scm
}
}
stage('Package & Test') {
steps {
withMaven(maven: 'Maven3') {
bat encoding: 'UTF-8', script: 'mvn clean package test "-Dcucumber.filter.tags=not @ignore" -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true'
}
}
}
stage('Deploy to Nexus') {
steps {
withMaven(maven: 'Maven3') {
bat encoding: 'UTF-8', script: 'mvn deploy -Dmaven.test.skip=true -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true'
}
}
}
}
}