-
Notifications
You must be signed in to change notification settings - Fork 64
/
Jenkinsfile
39 lines (39 loc) · 1.18 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
36
37
38
39
pipeline {
agent any
triggers { cron('H */4 * * 1-5') }
parameters {
string(name: 'USER', defaultValue: 'tu usuario', description: 'Usuario de GitHub')
}
stages {
stage('build') {
steps {
bat 'gradlew.bat clean build -x test'
}
}
stage('test-firefox') {
steps {
withCredentials([string(credentialsId: 'password-github', variable: 'password')]) {
bat "gradlew.bat test -Dgithub-user=${params.USER} -Dpassword=${password} -Dcontext=firefox -Dwebdriver.driver=firefox"
}
}
}
stage('aggregate') {
steps {
bat 'gradlew.bat aggregate'
}
}
stage('publish report'){
steps {
publishHTML([
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'target/site/serenity',
reportFiles: 'index.html',
reportName: 'Serenity-BDD',
reportTitles: ''
])
}
}
}
}