October 2017
Intermediate to advanced
458 pages
11h 13m
English
We can now add a new step in our master Jenkinsfile. When the web shop is automatically deployed, we can run some Selenium tests to check whether everything works. We have a bug production if this does not work, and we should fix it asap! It is highly unlikely that we get issues at this stage though, especially since the Development branch also has a Selenium step:
stage('Selenium') { steps { node(label: 'windows') { ws(dir: env.ws) { gitlabCommitStatus(name: 'Selenium') { script { unstash 'Everything' bat 'npm install' bat 'node_modules\\.bin\\webdriver-manager.cmd update' bat 'node_modules\\.bin\\protractor.cmd --baseUrl http://ciserver:8888 test\\protractor.conf.js' } } } } }}
Read now
Unlock full access