DEV Community

Cover image for Setup Continuos Integration/Delivery system in just 4 steps with Jenkins Pipelines and Blue Ocean

Setup Continuos Integration/Delivery system in just 4 steps with Jenkins Pipelines and Blue Ocean

Juan Alonso on May 07, 2017

Now that the first stable version of Blue Ocean Plugin was released, it is easier and cooler than ever to setup your Continuous Integration/Deliv...
Collapse
 
acdcjunior profile image
Antônio "acdc" Jr.

Would you have more info on how those parallel steps run regarding workspace? Do they (those three sh) run on the same copy (folder) or is there any kind of copying?

Collapse
 
acdcjunior profile image
Antônio "acdc" Jr.

After reading your post I was able to do some digging and found out some interesting things. Jenkinsfile has a stash/unstash feature and also something called external workspaces; I think this is the way to go regarding "sharing" generated artifacts between stages/steps.

Collapse
 
jalogut profile image
Juan Alonso

Hi, as far as I know parallel tasks are working on same workspace by default. As you mentioned, you could modify this behaviour doing specific actions before or into the parallel stages.

Collapse
 
martinmine profile image
Martin Storø Nyfløtt

Just a word of caution: If you have an existing multi-platform build, running them in parallel within the same Jenkins job would cause the job to aggregate e.g. test results for each job. Blue ocean is very nice, but has pretty much non-existent support for existing plugins other than what comes with it out-of-the-box.

Collapse
 
jalogut profile image
Juan Alonso

Hello Martin,

Thanks for pointing that out. As Blue Ocean is quite new, they are focusing on Pipeline Jobs at the moment and trying to be compatible with all pipeline features. It might be that they do not support other Plugins yet but I think this will change in the future. Plugins can be updated to be compatible with Blue Ocean, so little by little the developers can add this additional extension and not the other way around.

More information here:

Collapse
 
osrecio profile image
Oscar Recio

Great Post! I like the simplicity of Blueocean. Very useful to test.

Just a question: I see in your github example a command called "mg2-builder" is a internal tool?

Thanks!

Collapse
 
jalogut profile image
Juan Alonso

Hi Oscar,

Thanks, glad you like it.

Yes, this "mg2-builder" is an internal tool for now. We will make it open source as we did with magento2-deployment-tool. I just need to find some time for that.

Collapse
 
antonfrattaroli profile image
Anton Frattaroli

The code is so pretty. Reminds me of how much I hate xaml.