0
0
Jenkinsdevops~10 mins

Milestone step for concurrency in Jenkins - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add a milestone step in a Jenkins pipeline.

Jenkins
milestone [1]
Drag options to blanks, or click blank then click option'
A1
Btrue
Clabel
Dstage
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string or label instead of a number.
Omitting the milestone number.
2fill in blank
medium

Complete the code to define a stage with a milestone step inside.

Jenkins
stage('Build') {
    steps {
        [1] 1
    }
}
Drag options to blanks, or click blank then click option'
Amilestone
Binput
Csh
Decho
Attempts:
3 left
💡 Hint
Common Mistakes
Using other steps like echo or sh instead of milestone.
Placing milestone outside the steps block.
3fill in blank
hard

Fix the error in the milestone step syntax.

Jenkins
milestone([1])
Drag options to blanks, or click blank then click option'
Atrue
B'1'
C1
Dlabel
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes around the milestone number.
Passing a boolean or label instead of a number.
4fill in blank
hard

Fill both blanks to create a pipeline with two stages each having a milestone step.

Jenkins
pipeline {
    agent any
    stages {
        stage('Test') {
            steps {
                [1] 1
            }
        }
        stage('Deploy') {
            steps {
                [2] 2
            }
        }
    }
}
Drag options to blanks, or click blank then click option'
Amilestone
Becho
Csh
Dinput
Attempts:
3 left
💡 Hint
Common Mistakes
Using different steps like echo or sh instead of milestone.
Using the same milestone number for both stages.
5fill in blank
hard

Fill all three blanks to create a milestone-controlled pipeline with three stages.

Jenkins
pipeline {
    agent any
    stages {
        stage('Build') {
            steps {
                [1] 1
            }
        }
        stage('Test') {
            steps {
                [2] 2
            }
        }
        stage('Deploy') {
            steps {
                [3] 3
            }
        }
    }
}
Drag options to blanks, or click blank then click option'
Amilestone
Becho
Csh
Dinput
Attempts:
3 left
💡 Hint
Common Mistakes
Using other steps instead of milestone.
Repeating milestone numbers across stages.