0
0
Jenkinsdevops~10 mins

Build wrappers 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 build wrapper that timestamps the console output.

Jenkins
<buildWrappers>
  <[1]/>
</buildWrappers>
Drag options to blanks, or click blank then click option'
AansiColor
Btimeout
CcredentialsBinding
Dtimestamps
Attempts:
3 left
💡 Hint
Common Mistakes
Using timeout instead of timestamps.
Confusing ansiColor with timestamping.
2fill in blank
medium

Complete the code to add a build wrapper that sets a timeout of 10 minutes.

Jenkins
<buildWrappers>
  <[1]>
    <timeoutMinutes>10</timeoutMinutes>
  </[1]>
</buildWrappers>
Drag options to blanks, or click blank then click option'
Atimestamps
Btimeout
CansiColor
DcredentialsBinding
Attempts:
3 left
💡 Hint
Common Mistakes
Using timestamps instead of timeout.
Forgetting to close the wrapper tag properly.
3fill in blank
hard

Fix the error in the build wrapper code to correctly bind credentials.

Jenkins
<buildWrappers>
  <[1]>
    <bindings>
      <usernamePassword>
        <usernameVariable>USER</usernameVariable>
        <passwordVariable>PASS</passwordVariable>
        <credentialsId>my-creds</credentialsId>
      </usernamePassword>
    </bindings>
  </[1]>
</buildWrappers>
Drag options to blanks, or click blank then click option'
Atimestamps
Btimeout
CcredentialsBinding
DansiColor
Attempts:
3 left
💡 Hint
Common Mistakes
Using timeout or timestamps instead of credentialsBinding.
Misnaming the wrapper tag.
4fill in blank
hard

Fill both blanks to add a build wrapper that colors console output and sets a timeout of 5 minutes.

Jenkins
<buildWrappers>
  <[1]/>
  <[2]>
    <timeoutMinutes>5</timeoutMinutes>
  </[2]>
</buildWrappers>
Drag options to blanks, or click blank then click option'
AansiColor
Btimeout
Ctimestamps
DcredentialsBinding
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the wrapper names.
Forgetting to close tags properly.
5fill in blank
hard

Fill all three blanks to add a build wrapper that timestamps output, binds credentials, and sets a timeout of 15 minutes.

Jenkins
<buildWrappers>
  <[1]/>
  <[2]>
    <bindings>
      <usernamePassword>
        <usernameVariable>USER</usernameVariable>
        <passwordVariable>PASS</passwordVariable>
        <credentialsId>admin-creds</credentialsId>
      </usernamePassword>
    </bindings>
  </[2]>
  <[3]>
    <timeoutMinutes>15</timeoutMinutes>
  </[3]>
</buildWrappers>
Drag options to blanks, or click blank then click option'
Atimestamps
BcredentialsBinding
Ctimeout
DansiColor
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up wrapper names.
Missing closing tags.