0
0
Jenkinsdevops~5 mins

Copying artifacts between jobs in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an artifact in Jenkins?
An artifact is a file or set of files produced by a Jenkins job that can be saved and used later, such as build outputs or reports.
Click to reveal answer
beginner
How can you share artifacts between two Jenkins jobs?
You can share artifacts by archiving them in the first job and then using the 'Copy Artifact' plugin in the second job to retrieve those files.
Click to reveal answer
beginner
Which Jenkins plugin is commonly used to copy artifacts from one job to another?
The 'Copy Artifact' plugin is used to copy artifacts between Jenkins jobs.
Click to reveal answer
beginner
What is the purpose of the 'Archive the artifacts' post-build action in Jenkins?
It saves the specified files from a job so they can be accessed later or copied to other jobs.
Click to reveal answer
intermediate
What information do you need to specify when configuring the 'Copy Artifact' step?
You need to specify the source project name and the criteria to select the build (like latest successful build) to copy artifacts from.
Click to reveal answer
Which Jenkins plugin allows copying artifacts between jobs?
ACopy Artifact
BGit Plugin
CPipeline
DDocker Plugin
What must a job do to make its artifacts available for copying?
AInstall a plugin
BArchive the artifacts
CTrigger another job
DRun a shell script
When configuring 'Copy Artifact', which build selection method is commonly used?
ALatest successful build
BOldest build
CRandom build
DBuild with errors
If you want to copy artifacts from a job named 'BuildApp', what do you specify in the 'Copy Artifact' step?
APlugin name: BuildApp
BDestination project: BuildApp
CBuild trigger: BuildApp
DSource project: BuildApp
What happens if the source job has no archived artifacts when 'Copy Artifact' runs?
AIt copies empty files
BIt skips copying silently
CThe copy step fails with an error
DIt archives artifacts automatically
Explain the steps to copy artifacts from one Jenkins job to another.
Think about saving files first, then retrieving them.
You got /4 concepts.
    Why is archiving artifacts important before copying them between jobs?
    Consider what happens if files are not saved.
    You got /4 concepts.