Free CJE Exam Braindumps (page: 18)

Page 17 of 47

You are using a base Jenkins master in production with the recommended set of plugins.
The administrators have configured a Global Pipeline Library named "common-libs", stored in a git repository, with the configuration shown in the exhibit above.
You have a Pipeline job at the root of the Jenkins dashboard, whose script starts with the annotation @LibraryCcommon-libs') _
You want to test this Pipeline job with a beta version of the Global Pipeline Library "common-libs", stored on the branch named ‘’edge’’ the git repository.
Which of the following statements are TRUE? Choose 2 answers

  1. Replace the @ Library ('common- lib. ' _ annotation with QLibrary('common-libs@edge') and run the job again.
  2. Duplicate the Pipeline job in a folder with a local Global Pipeline Library referencing the git repository on the "edge" branch, and change libs') _ annotation to ^Library ('common-libs: edge1) Replace the ommon-libs1) _ annotation with ^Library (' common -libs: edge') _ and run the job again.
  3. Duplicate the pipeline job in a folder with a local Global Pipeline Library referencing the git repository on the "edge" branch, and change its annotation to ^Library (' common - libs@edge' )
  4. A Jenkins test instance with the same configuration as the production Jenkins master can be used to achieve this, giving yourself administrator rights to configure the "edge" branch on the Global Configuration.
  5. You cannot do this on this Jenkins instance.

Answer(s): A,C,D



You are the administrator of a base Jenkins master with the recommended set of plugins installed. You want to protect the Jenkins master against malicious (or bad) usages of Groovy methods. You also want your users to be able to share their Pipeline code via Global Pipeline Libraries housed on a git repository under your company's Github Organization. Which of the following statements is TRUE?

  1. You should configure Global Pipeline Libraries at the Github Organization level: The libraries are running as "untrusted" code, allowing developers to run code on the Groovy sandbox.
  2. You should configufe Global Pipeline Libraries at the Pipeline level: The libraries are running as "untrusted" code, allowing developers to run code on the Groovy sandbox.
  3. You should not configure any Global Pipeline Libraries at all: The libraries are running as "trusted" code, allowing all developers to execute privileged methods.
  4. You should not configure any Global Pipeline Libraries at the folder level: The libraries are running as "trusted" code, allowing all developers to execute privileged methods.

Answer(s): C



You want to allow regular users to configure limited aspects of a job but not allow them to change everything, What Jenkins mechanism do to use?

  1. System environment variables
  2. Job Configuration Restriction plugin
  3. Build parameters
  4. Matrix-based security
  5. Declarative Pipeline

Answer(s): A



How can you easily see if a plugin you use needs to be upgraded to a new version?

  1. Check the plugin wiki.
  2. Search for the plugin in the Jenkins artifact repository.
  3. Email the maintained
  4. Check the Jenkins Update Center.

Answer(s): D






Post your Comments and Discuss CloudBees CJE exam with other Community members:

CJE Exam Discussions & Posts