Welcome to the Linux Foundation Forum!

Chap 7 - GitHub Branch Policies and Pipeline as Code with Jenkinsfile - Syntax Error in PipelineCode

Hi @fcioanca ,

There is a Syntax Error in the Pipeline Code syntax given on the Page - https://trainingportal.linuxfoundation.org/learn/course/devops-and-sre-fundamentals-implementing-continuous-delivery-lfs261/github-branch-policies-pipeline-as-code-with-jenkinsfile/github-branch-policies-and-pipeline-as-code-with-jenkinsfile?page=8

The pipeline syntax given in the Course content is

  1. pipeline {
  2. agent{}
  3. stages{
  4. stage1{
  5. step{}
  6. }
  7. }
  8. }

Here the keyword stage is actually written as stage1, possibly by mistake.

I am posting a screenshot for your reference.

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training