Scripted pipelines are using Groovy language syntax to achieve part of the requirements for a pipeline. The other option (that we'll cover in another post) is Declarative syntax. Scripted Pipeline example Create a pipeline as explained in pipelines-primer-1 but select Scripted Pipeline from the dropdown selection: …
Read MoreLet's add some scm (source control management) abilities to our pipelines. SCM We can add one more stage to the pipeline created in the previous post that will be used to clone a git repository I'll be using checkout: Check out from version control (that has more options than git:Git) Using the Pipeline Syntax tool …
Read MoreJenkins pipelines adds advanced features and abilities to Jenkins, allowing a better solution for CI/CD. Mainly, pipelines are written as code and are saved in VCS (like git). Jenkins pipelines implementation is made of several plugins added tp Jenkins. Pipelines are made of stages which are then made of steps. Let's …
Read MoreConfigure Credentials This is optional if you intend to leave you repository public for now. Configure label for node The pipeline we use spcifies which agent should run it (I use workers in my example): 1agent { label 'workers' } So, I'd label my controller with that Go to: Dashboard->Manage Jenkins …
Read More(these terms are coppied with some additions from here ). Controller The central, coordinating process which stores configuration, loads plugins, and renders the various user interfaces for Jenkins. Agent - An agent is typically a machine, or container, which connects to a Jenkins controller and executes tasks when …
Read MoreIn this walkthrough we'll create a new project (job). Note that Jenkins GUI looks better in Chrome, so you can go ahead and install Chrome in your linux machine. Create an example project Create the job Click on New Item fill my_freestyle in the top edit fiels (project name) Select Freestyle Project click on OK at the …
Read MoreJenkins after installation This is how my jenkins page was looking just after I have installed it and logged in. You can see my login information at the top-right corner. User I can click on my user name, or go to People (on the left) to get the same information. Note the top menu specifying Dashboard--> at the top …
Read More