0
0
Jenkinsdevops~10 mins

Implicit vs explicit loading in Jenkins - Interactive Practice

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

Complete the code to load a shared library explicitly in Jenkins Pipeline.

Jenkins
def lib = library('[1]').myLib
Drag options to blanks, or click blank then click option'
AsharedLib
BloadLibrary
Cmy-shared-library
DlibraryLoad
Attempts:
3 left
💡 Hint
Common Mistakes
Using a variable name instead of the library name string.
2fill in blank
medium

Complete the code to use implicit loading of a shared library in Jenkins Pipeline.

Jenkins
@Library('[1]') _
Drag options to blanks, or click blank then click option'
AlibraryLoad
BloadLibrary
CsharedLib
Dmy-shared-library
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong annotation or misspelling the library name.
3fill in blank
hard

Fix the error in the explicit loading code to correctly call a function from the shared library.

Jenkins
def lib = library('[1]')
lib.[2]()
Drag options to blanks, or click blank then click option'
Amy-shared-library
BcallFunction
CmySharedLibrary
DrunFunction
Attempts:
3 left
💡 Hint
Common Mistakes
Using a variable instead of a string for the library name.
4fill in blank
hard

Fill both blanks to explicitly load a shared library and call its function named 'buildApp'.

Jenkins
def lib = library('[1]')
lib.[2]()
Drag options to blanks, or click blank then click option'
Amy-shared-library
BbuildApp
CdeployApp
DrunBuild
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up function names or using incorrect library names.
5fill in blank
hard

Fill all three blanks to implicitly load a shared library named 'utils' and call its 'testConnection' function.

Jenkins
@Library('[1]') _
def result = [2].[3]()
Drag options to blanks, or click blank then click option'
Autils
CtestConnection
DrunTest
Attempts:
3 left
💡 Hint
Common Mistakes
Using different names for the library in annotation and variable.