Complete the code to archive the build artifacts in Jenkins.
archiveArtifacts '[1]'
The archiveArtifacts step archives files matching the given pattern. Here, build/output/*.jar archives all jar files from the build output.
Complete the code to archive all files inside the 'dist' folder.
archiveArtifacts '[1]'
The pattern dist/* archives all files directly inside the 'dist' folder.
Fix the error in the code to archive all files recursively inside 'output' folder.
archiveArtifacts '[1]'
The pattern output/** archives all files and folders recursively inside the 'output' folder.
Fill both blanks to archive all '.log' files and exclude 'debug.log'.
archiveArtifacts artifacts: '[1]', excludes: '[2]'
The artifacts pattern **/*.log archives all log files recursively. The excludes pattern debug.log skips the debug log file.
Fill all three blanks to archive all '.jar' files, exclude 'test.jar', and allow empty archives.
archiveArtifacts artifacts: '[1]', excludes: '[2]', allowEmptyArchive: [3]
The artifacts pattern **/*.jar archives all jar files recursively. The excludes pattern test.jar skips the test jar file. Setting allowEmptyArchive to true prevents build failure if no files match.