-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
44 lines (42 loc) · 1.49 KB
/
Jenkinsfile
File metadata and controls
44 lines (42 loc) · 1.49 KB
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
40
41
42
43
44
pipeline {
agent any
options {
// This is required if you want to clean before build
skipDefaultCheckout(true)
}
stages {
stage('Checkout') {
steps {
// Clean before build
cleanWs()
//Download feature files
checkout scm
bat 'pip install -r requirements.txt'
}
}
stage('Download features') {
steps {
//Download feature files
assertthatBddFeatures(jiraServerUrl: 'http://assertthat-jira.com/jira', credentialsId: '10000', jql: '', tags: '@robot', mode: 'automated', outputFolder: 'login_tests', projectId: '10000', proxyURI:'', proxyUsername: '',proxyPassword: '')
}
}
stage('Convert Features into Robot') {
steps {
bat 'gherkin2robotframework login_tests/1-login.feature'
}
}
stage('Run tests') {
steps {
bat 'robot login_tests'
}
}
}
post{
always{
//Generate report
bat 'python generate_report.py'
//Upload test results
assertthatBddReport(jiraServerUrl: 'http://assertthat-jira.com/jira', credentialsId: '10000', jsonReportFolder: './', jsonReportIncludePattern: '**/*.json', projectId: '10000', runName: 'Robot test run', type: 'cucumber',proxyURI:'', proxyUsername: '',proxyPassword: '')
}
}
}