-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
41 lines (40 loc) · 1.3 KB
/
Jenkinsfile
File metadata and controls
41 lines (40 loc) · 1.3 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
def TEAMS_CHANNEL_URL = "PasteYourURLhere"
def EMAIL_LIST = "Wesley.Buchanan@br-automation.com;"
pipeline {
agent { node { label 'gradle' } }
tools
{
gradle '7.3.3'
}
stages {
stage('Test') {
parallel {
stage('Python Script Tests') {
steps {
powershell(returnStdout: true, script: "cd resources; python -m pytest 'tests' --junit-xml='TestResults.xml' --alluredir='AllureReport' --suppress-tests-failed-exit-code");
junit(testResults: '**/resources/*.xml');
}
}
stage('Groovy Tests') {
steps {
script {
try {
bat 'gradlew clean test'
} finally {
junit '**/build/test-results/test/*.xml'
}
}
}
}
}
}
}
post {
always {
script {
allure(results: [[path: "resources\\AllureReport"], [path: "allure-results"]])
SendNotifications(recipients: "${EMAIL_LIST}", buildStatus: currentBuild.result);
}
}
}
}