pipeline and dashboard setup

master
helenanull 4 years ago
parent e033a91f1c
commit 4e75cee9ce

24
Jenkinsfile vendored

@ -2,15 +2,29 @@ pipeline {
agent any agent any
stages { stages {
stage('Dependencies') { stage('dependencies') {
steps { steps {
sh 'npm i' sh 'npm i'
} }
} }
stage('Test') { stage('cypress parallel tests') {
steps { environment {
echo 'Testing..' CYPRESS_RECORD_KEY = credentials('cypress-example-record-key')
sh 'npm run cy:run:web' CYPRESS_trashAssetsBeforeRuns = 'false'
}
parallel {
stage('machine 1') {
steps {
sh "npm run cy:ci"
}
}
stage('machine 2') {
steps {
sh "npm run cy:ci"
}
}
} }
} }
} }

@ -6,7 +6,8 @@
"cy:open:mob": "cypress open --env device=mob", "cy:open:mob": "cypress open --env device=mob",
"cy:open:web": "cypress open --env device=web", "cy:open:web": "cypress open --env device=web",
"cy:run:mob": "cypress run --env device=mob", "cy:run:mob": "cypress run --env device=mob",
"cy:run:web": "cypress run --env device=web" "cy:run:web": "cypress run --env device=web",
"cy:ci": "cypress run --env device=web --record --parallel --config projectId=urshkd"
}, },
"devDependencies": { "devDependencies": {
"cypress": "^6.8.0", "cypress": "^6.8.0",

Loading…
Cancel
Save