O'Reilly logo

The DevOps 2.2 Toolkit by Viktor Farcic

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

Creating a scaling pipeline

Now comes the exciting part. We're about to start writing a Pipeline job that will serve as the base for the first self-adaptation script.

open "http://$(docker-machine ip swarm-1)/jenkins/newJob"

Once inside the New Job screen, please type service-scale as the item name. Select Pipeline as job type and click the OK button.

Since Jenkins service we created comes with enabled authorization, we need an authentication mechanism for triggering builds. We could use the administrative username and password. A better option is to make a trigger that will be independent of any particular user. That can be accomplished with tokens.

Please select the Trigger builds remotely checkbox from the Build Trigger section of the ...

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