You want to archive and track a build artifact, "build/mybuilt.jar", with a fingerprint from your team's build. How would you invoke the archiveArtifacts function to accomplish this?
Suggested Answer: D
Get Premium CJE Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
Example with Context: post { success { archiveArtifacts artifacts: 'build/mybuilt.jar', fingerprint: true } }
12 comments · newest first
EL
Eliz
2 months ago
Option A looks wrong. It’s missing the correct syntax for artifacts.
NI
Nickole
3 months ago
Agreed! Fingerprinting is important for tracking.
MA
Mari
3 months ago
I think option D is the best choice. It has the right syntax.
CA
Carry
3 months ago
B looks incomplete, I don't think it would work.
NO
Norah
3 months ago
Wait, why would you set fingerprint to false? That seems odd.
EU
Eura
3 months ago
D is the way to go, no doubt!
CA
Carman
3 months ago
I think A is correct, but not sure about the fingerprint part.
KE
Kenneth
4 months ago
Definitely D, that's the right syntax!
ZO
Zona
4 months ago
I definitely recall that "artifacts:" is essential, but I can't remember if the fingerprint should be true or false.
PH
Phuong
4 months ago
I'm a bit confused about the fingerprint part. Does it need to be true for archiving to work properly?
RE
Remedios
4 months ago
I remember practicing a similar question where we had to specify the fingerprint option. I feel like it might be option D.
VE
Vesta
4 months ago
I think the correct syntax should include "artifacts:" before the file path, but I'm not entirely sure which option that is.