-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
25 lines (24 loc) · 708 Bytes
/
Copy pathJenkinsfile
File metadata and controls
25 lines (24 loc) · 708 Bytes
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
pipeline {
agent any
stages {
stage('Pull code from Github') {
dir('test') {
git branch: 'develop', changelog: false, poll: false, url: 'https://github.com/Dasi-Rakesh/cucumber-java-parallel'
}
}
stage('Run Test') {
browserstack(credentialsId: "${params.BROWSERSTACK_USERNAME}") {
def user = "${env.BROWSERSTACK_USERNAME}"
if (user.contains('-')) {
user = user.substring(0, user.lastIndexOf('-'))
}
withEnv(['BROWSERSTACK_USERNAME=' + user]) {
sh label: '', returnStatus: true, script: ''
'#!/bin/bash -l
mvn clean test - DsuiteXmlFile = testng.xml ''
'
}
}
}
}
}