Complete the code to load a shared library with a specific version in Jenkins pipeline.
def lib = library('[1]')
To load a specific version of a shared library in Jenkins, you append '@version' to the library name.
Complete the code to declare a shared library with a specific version in Jenkinsfile.
@Library('[1]') _
The '@Library' annotation requires the library name with the version tag to load a specific version.
Fix the error in the code to load version 'v3.0' of the shared library named 'common-lib'.
def common = library('[1]')
The correct syntax to specify a version is '@version', so 'common-lib@v3.0' is correct.
Fill both blanks to declare and load a shared library named 'build-tools' with version 'v1.5' in Jenkins pipeline.
@Library('[1]') _ def tools = library('[2]')
Both the annotation and the library call must specify the library name with the version tag using '@'.
Fill all three blanks to load a shared library named 'deploy-lib' with version 'v2.0', then call its 'deployApp' function.
@Library('[1]') _ def deploy = library('[2]') deploy.[3]()
The library must be declared and loaded with the version tag '@v2.0'. Then call the function 'deployApp' from the loaded library.