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

Archiving artifacts

The next step is pretty easy, we want to archive our artifacts so we can put them in production later. We are building our web shop on Linux, so that is where we are going to archive our artifacts as well:

stage('Archiving Artifacts') {  steps {    node(label: 'linux') {      ws(dir: 'web-shop-pipeline') {        archiveArtifacts 'prod/, node_modules/bootstrap/dist/css/bootstrap.min.css, node_modules/angular/angular.min.js, node_modules/bootstrap/dist/js/bootstrap.min.js, node_modules/jquery/dist/jquery.min.js'      }    }  }}

We do not need to commit the status to GitLab for this one. If this fails, Jenkins fails and obviously not our commit, because we tested those thoroughly at this point. The archiveArtifacts step can easily be created using ...

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