forked from cegekavasireddyajay/lab400-testautomation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
34 lines (33 loc) · 1.02 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
@Library('viollier') _
import be.cegeka.jenkins.*
pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
}
agent {
node { label 'java11chromium' }
}
triggers {
cron('0 22 * * *')
}
parameters {
choice(name: 'env', choices: ['DEV', 'TST', 'QAS'], description: 'Pick your env')
choice(name: 'testSet', choices: ['Smoketests', 'Regression', 'FullSuite', 'Custom'], description: 'Pick your test set')
string(name: 'testExec', defaultValue: '', description: 'Jira test execution key to report to? (optional)')
}
stages {
stage('Testing') {
steps {
script {
truststoreSetup.setup()
sh "./gradlew clean test -Denvironment=${params.env} -PtestSet=${params.testSet} -DtestExec=${params.testExec}"
}
}
}
}
post {
always {
step([$class: 'Publisher', reportFilenamePattern: '**/testng-results.xml'])
}
}
}