Skip to content

Commit 6c7d8e4

Browse files
Merge pull request #7 from browserstack/review
Adding Jenkins Job
2 parents 9815b2e + 2e04b21 commit 6c7d8e4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Jenkinsfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bstack-local''',
2222

2323
stage('Pull from Github') {
2424
dir('test') {
25-
git branch: 'review', changelog: false, poll: false, url: 'https://github.com/browserstack/browserstack-examples-robot.git'
25+
git branch: 'main', changelog: false, poll: false, url: 'https://github.com/browserstack/browserstack-examples-robot.git'
2626
}
2727
dir('pipPackage') {
2828
git branch: 'develop_webdriver-framework_python', changelog: false, poll: false, url: 'https://github.com/browserstack/webdriver-framework.git'
@@ -68,11 +68,11 @@ bstack-local''',
6868
sh '''
6969
cd test
7070
export CONFIG_FILE_PATH=`pwd`/'resources/conf/caps/bstack-config.yaml'
71-
python3 -m robot --variable testType:bstack-single .
72-
73-
//pabot --testlevelsplit --verbose --variable testType:bstack-single --suite product .
71+
export PATH=~/.local/bin:$PATH
72+
/var/lib/jenkins/.local/bin/pabot --testlevelsplit --processes 5 --variable testType:bstack-single .
7473
7574
'''
75+
}
7676
else if ( "${params.TEST_TYPE}".contains('local') ) {
7777
sh '''
7878
cd test
@@ -94,7 +94,6 @@ bstack-local''',
9494
}
9595
} catch (e) {
9696
currentBuild.result = 'FAILURE'
97-
echo e
9897
} finally {
9998
stage('Publish Results'){
10099
browserStackReportPublisher 'automate'

0 commit comments

Comments
 (0)