0
0
Jenkinsdevops~10 mins

What is Continuous Delivery vs Continuous Deployment in Jenkins - Interactive Quiz & Practice

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

Complete the code to define a Jenkins pipeline stage for Continuous Delivery.

Jenkins
stage('Deploy to Staging') {
    steps {
        [1] 'deploy-to-staging'
    }
}
Drag options to blanks, or click blank then click option'
Ainput
BarchiveArtifacts
Ccheckout
Dsh
Attempts:
3 left
💡 Hint
Common Mistakes
Using input instead of sh for running commands.
2fill in blank
medium

Complete the code to add a manual approval step in Continuous Delivery.

Jenkins
stage('Approval') {
    steps {
        [1] message: 'Approve deployment to production?'
    }
}
Drag options to blanks, or click blank then click option'
Aecho
Bsh
Cinput
Dtimeout
Attempts:
3 left
💡 Hint
Common Mistakes
Using sh instead of input for manual approval.
3fill in blank
hard

Fix the error in the Jenkins pipeline code to enable Continuous Deployment.

Jenkins
pipeline {
    agent any
    stages {
        stage('Build') {
            steps {
                sh 'make build'
            }
        }
        stage('Deploy') {
            steps {
                [1] 'deploy-to-production'
            }
        }
    }
}
Drag options to blanks, or click blank then click option'
Ainput
Bsh
Cecho
DarchiveArtifacts
Attempts:
3 left
💡 Hint
Common Mistakes
Using input which pauses for manual approval, not suitable for Continuous Deployment.
4fill in blank
hard

Fill both blanks to create a Jenkins pipeline snippet that shows the difference between Continuous Delivery and Continuous Deployment.

Jenkins
pipeline {
    agent any
    stages {
        stage('Deploy') {
            steps {
                [1] 'deploy-to-staging'
                [2] message: 'Approve production deployment?'
            }
        }
    }
}
Drag options to blanks, or click blank then click option'
Ash
Binput
Cecho
Dtimeout
Attempts:
3 left
💡 Hint
Common Mistakes
Using echo instead of sh for deployment commands.
5fill in blank
hard

Fill all three blanks to complete a Jenkins pipeline snippet that automates deployment fully for Continuous Deployment.

Jenkins
pipeline {
    agent any
    stages {
        stage('Build') {
            steps {
                [1] 'make build'
            }
        }
        stage('Test') {
            steps {
                [2] 'make test'
            }
        }
        stage('Deploy') {
            steps {
                [3] 'deploy-to-production'
            }
        }
    }
}
Drag options to blanks, or click blank then click option'
Ash
Binput
Cecho
DarchiveArtifacts
Attempts:
3 left
💡 Hint
Common Mistakes
Using input which pauses the pipeline, not suitable for Continuous Deployment.