Complete the code to stash files named 'build.log'.
stash name: 'logs', includes: '[1]'
The includes parameter specifies which files to stash. Here, 'build.log' is the correct file to stash.
Complete the code to unstash the files named 'logs'.
unstash '[1]'
The unstash command uses the stash name to retrieve files. Here, the stash name is 'logs'.
Fix the error in the stash command to correctly stash all '.jar' files.
stash name: 'artifacts', includes: '[1]'
The includes parameter needs a pattern with a wildcard to match all '.jar' files, so '*.jar' is correct.
Fill both blanks to stash all '.txt' files and unstash them later.
stash name: '[1]', includes: '*.txt' ... unstash '[2]'
The stash and unstash names must match. Here, 'textfiles' is used for both to pass '.txt' files correctly.
Fill all three blanks to stash '.log' files, unstash them, and then archive the logs.
stash name: '[1]', includes: '*.log' ... unstash '[2]' archiveArtifacts artifacts: '*.log', fingerprint: true, allowEmptyArchive: [3]
The stash and unstash names must match ('logfiles'). Setting allowEmptyArchive to true avoids errors if no logs exist.