0
0
Jenkinsdevops~10 mins

Library directory structure 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 define the root directory for shared libraries in Jenkins.

Jenkins
library {
  rootDir = '[1]'
}
Drag options to blanks, or click blank then click option'
Avars
Blibs
Csrc
Dresources
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'vars' which holds global variables, not the root library folder.
Using 'src' which is for source code inside the library.
2fill in blank
medium

Complete the code to specify the directory for global variables in a Jenkins shared library.

Jenkins
library {
  varsDir = '[1]'
}
Drag options to blanks, or click blank then click option'
Avars
Bsrc
Cresources
Dlib
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'src' which is for source code classes.
Using 'resources' which holds non-code files.
3fill in blank
hard

Fix the error in the directory structure declaration for Jenkins shared libraries.

Jenkins
library {
  resourcesDir = '[1]'
}
Drag options to blanks, or click blank then click option'
Aresources
Bsrc
Cvars
Dlib
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'lib' which is not a standard folder for resources.
Using 'vars' which is for global variables.
4fill in blank
hard

Fill both blanks to complete the Jenkins shared library directory structure.

Jenkins
library {
  rootDir = '[1]'
  varsDir = '[2]'
}
Drag options to blanks, or click blank then click option'
Alibs
Bvars
Csrc
Dresources
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping 'vars' and 'src' folders.
Using 'resources' as root directory.
5fill in blank
hard

Fill all three blanks to define a complete Jenkins shared library directory structure.

Jenkins
library {
  rootDir = '[1]'
  varsDir = '[2]'
  resourcesDir = '[3]'
}
Drag options to blanks, or click blank then click option'
Alibs
Bvars
Cresources
Dsrc
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'src' instead of 'libs' as root directory.
Confusing 'resources' with 'vars'.