-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
31 lines (29 loc) · 942 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
30
31
pipeline {
agent any
stages {
stage('Checkout') {
steps {
withCredentials([usernamePassword(credentialsId: '[credentialsId]', usernameVariable: 'GITHUB_USERNAME', passwordVariable: 'GITHUB_ACCESS_TOKEN')]) {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'https://github.com/PrameshKhanal/participant_attributes', credentialsId: '[credentialsId]']]])
}
}
}
stage('Robot Framework Test') {
steps {
bat 'robot -d results --variable BROWSER:chrome .\tests\new_application.robot'
}
}
}
post {
always {
robot(
outputPath: 'Results',
reportFileName: 'report.html',
logFileName: 'log.html',
outputFileName: 'output.xml',
otherFiles: '*screenshot*.jpg',
enableCache: false
)
}
}
}