fix: update ChromeHeadless command to include --no-sandbox option
Some checks failed
bangararaju.kottedi.in/portfolio-admin/pipeline/head There was a failure building this commit
Some checks failed
bangararaju.kottedi.in/portfolio-admin/pipeline/head There was a failure building this commit
This commit is contained in:
parent
196ad13eea
commit
ddf92e0548
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -12,6 +12,10 @@ pipeline {
|
|||||||
stage('Build & Test') {
|
stage('Build & Test') {
|
||||||
agent { label getAgentLabel() }
|
agent { label getAgentLabel() }
|
||||||
|
|
||||||
|
environment {
|
||||||
|
CHROME_BIN = "${getChromeBin()}"
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
stage('Cleanup Workspace') {
|
stage('Cleanup Workspace') {
|
||||||
@ -64,7 +68,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'npm run test -- --watch=false --browsers=ChromeHeadless'
|
sh 'npm run test -- --watch=false --browsers=ChromeHeadless --no-sandbox'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -174,3 +178,11 @@ def getHealthUrl() {
|
|||||||
return "https://bangararaju-uat.kottedi.in/admin"
|
return "https://bangararaju-uat.kottedi.in/admin"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def getChromeBin() {
|
||||||
|
if (env.BRANCH_NAME == 'prod') {
|
||||||
|
return "/snap/bin/chromium"
|
||||||
|
} else {
|
||||||
|
return "/usr/bin/chromium"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user