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 ...

Get The DevOps 2.2 Toolkit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.