O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

E2E testing

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'          }        }      }    }  }}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required