develop #12

Merged
rajukottedi merged 5 commits from develop into prod 2026-03-06 12:14:51 +05:30
Showing only changes of commit ddf92e0548 - Show all commits

14
Jenkinsfile vendored
View File

@ -12,6 +12,10 @@ pipeline {
stage('Build & Test') {
agent { label getAgentLabel() }
environment {
CHROME_BIN = "${getChromeBin()}"
}
stages {
stage('Cleanup Workspace') {
@ -64,7 +68,7 @@ pipeline {
}
}
steps {
sh 'npm run test -- --watch=false --browsers=ChromeHeadless'
sh 'npm run test -- --watch=false --browsers=ChromeHeadless --no-sandbox'
}
}
@ -173,4 +177,12 @@ def getHealthUrl() {
} else {
return "https://bangararaju-uat.kottedi.in/admin"
}
}
def getChromeBin() {
if (env.BRANCH_NAME == 'prod') {
return "/snap/bin/chromium"
} else {
return "/usr/bin/chromium"
}
}