Which directive in a Declarative Pipeline defines the environment where the entire pipeline or a specific stage runs?
Jenkins Pipelines
Question · Easy
In a Declarative Pipeline, which section is REQUIRED and must be present at the top level?
What is the correct Declarative Pipeline syntax to run a stage only when the branch is 'main'?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
In a Scripted Pipeline, what object is used to define the pipeline logic and which method wraps the entire script?
Which Jenkinsfile directive configures pipeline-level options such as build timeout and disabling concurrent builds?
What does 'agent none' at the top of a Declarative Pipeline mean?
Which post condition in a Declarative Pipeline runs ONLY when the current build status is worse than the previous build status?
Question · Medium
In a Declarative Pipeline, how do you define a string parameter named 'DEPLOY_ENV' with a default value of 'staging'?
What is the purpose of the 'parallel' directive in a Declarative Pipeline stage?
Which step in a Jenkinsfile is used to archive build artifacts so they are accessible from the Jenkins UI?
What is a Jenkins executor?
Agents Executors
Which Jenkins agent launch method is preferred for cloud or ephemeral agents because it initiates the connection from the agent to the controller?
What Jenkins feature allows you to label multiple agents with the same tag so a pipeline can run on any of them?
When configuring a Docker agent in a Declarative Pipeline, which syntax correctly runs the stage inside a specific Docker image?
Which Jenkins plugin provides the 'pipeline' step type and enables defining CI/CD pipelines as code?
Plugins
Which plugin must be installed to enable Jenkins to checkout code from a Git repository using the 'git' or 'checkout scm' steps?
The Credentials Binding plugin allows you to do what in a pipeline?
What type of credentials should you use in Jenkins to store a username and password pair for authenticating to a package registry?
Blue Ocean is a Jenkins UI plugin primarily designed for which purpose?
In Blue Ocean, what is a 'branch source' used for?
What Jenkins job type automatically creates pipelines for each branch and pull request in a repository that contains a Jenkinsfile?
Which Jenkins security realm delegates user authentication to an external LDAP directory?
Security Rbac
In Jenkins' Matrix Authorization Strategy, what permission must a user have to be able to start (trigger) a build?
Which Jenkins feature prevents a pipeline from accessing credentials or files it was not explicitly granted access to?
What is the recommended approach for storing a Jenkins pipeline's Jenkinsfile?
In Jenkins distributed builds, what is the role of the controller node?
Distributed Builds
What does the 'stash' step do in a Jenkins Pipeline?
Which Jenkins Pipeline feature allows reusable Groovy code (functions, steps, classes) to be shared across multiple pipelines?
Shared Libraries
In a Jenkins Shared Library, where should you place a Groovy file named 'myUtils.groovy' to make it importable as a class?
How do you load a Shared Library in a Jenkinsfile using a specific version (tag 'v1.2')?
What is the effect of configuring 'Discard old builds' with a max build count of 5 in a Jenkins job?
Which Declarative Pipeline post condition runs regardless of the build result?
What Jenkins feature enables a build to pause and wait for a human to approve or provide input before continuing?
Which plugin provides the Role-Based Access Control (RBAC) capability in Jenkins for assigning roles to users and groups?
In Jenkins, what is the purpose of the 'Pipeline Syntax' snippet generator?
What is a Jenkins 'folder' and which plugin provides it?
When using 'checkout scm' in a Multibranch Pipeline, what does 'scm' refer to?
What Jenkins mechanism allows automatically triggering a build when code is pushed to a repository?
In a Declarative Pipeline, how do you define a cron-based trigger to run every weekday at midnight?
What does the 'retry' option do when added to a stage in a Declarative Pipeline?
Which Jenkins Pipeline step is used to send an email notification at the end of a build?
What is the 'Replay' feature in Jenkins Pipelines used for?
In CloudBees Jenkins, what does the 'Operations Center' (previously CloudBees Core) provide?
Question · Hard
What Jenkins configuration file format is used by Configuration as Code (JCasC) plugin?
Which environment variable holds the Git branch name in a Jenkins Multibranch Pipeline build?
What does setting 'agent none' in a Declarative Pipeline require you to do for each stage?
Which step is used in a Jenkins Pipeline to run a shell command on Linux/macOS agents?
Loading more…