Our first pipeline

Let's start by creating our first pipeline. We have to log in to our web console and navigate to Add to project | Import YAML.

In order to do that, we have to go the web console's main web page and navigate to Add to Project | Import YAML/Json and enter the following script there:

apiVersion: v1kind: BuildConfigmetadata:  name: pricing-service-pipeline  labels:    name: pricing-service-pipelinespec:  runPolicy: Serial  strategy:    type: JenkinsPipeline    jenkinsPipelineStrategy:      jenkinsfile:"pipeline { \n agent any\n stages {\n stage('Build') {\n steps {\n echo 'Pipeline is running'\n }\n }\n }\n }\n"

After the script is created, we can click on the Create button:

Before we look further at the pipeline code, let's note the other ...

Get Hands-On Cloud Development with WildFly 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.