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

pipeline { 
    agent{}      
    stages{ 
        stage1{ 
            step{} 
        } 
    } 
}

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

I am posting a screenshot for your reference.

Comments

Categories

Upcoming Training