Jenkins 1.452 아카이빙 / 지문 오류로 인해 빌드 홍보가 아닙니다.
-
15-11-2019 - |
문제
빌드를 홍보하기 위해 홍보 빌드 플러그인으로 Jenkins 1.452를 설치하고 있습니다. 나는 지금 매우 간단한 2 단계 프로모션 경로를 가지고 있습니다.
- 컴파일 및 설치 (JAR 생성)
- UAT 배포 (JAR를 MY Application Server로 푸시)
나는 이것이 2 개의 일자리로 부서지고, 둘 다 성공적으로 성공적으로 실행됩니다. 그러나 프로모션 프로세스를 설정하려고 할 때 다음 오류가 발생했습니다.
.Legacy code started this job. No cause information is available Building in workspace /Users/theatre/.jenkins/jobs/ActiveCQ API (Compile)/workspace Promoting ActiveCQ API (Compile) #38 scheduling build for ActiveCQ API (UAT Deploy) Recording fingerprints ERROR: Build artifacts are supposed to be fingerprinted, but build artifact archiving is not configured[8mha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=[0mbuild hudson.tasks.Fingerprinter@217aa061 FAILURE Archiving artifacts build hudson.tasks.ArtifactArchiver@79b75172 FAILURE Finished: FAILURE
(컴파일) 작업에 대한 구성의 화면 캡이 붙어 있습니다.
Fingerprinting 및 Archiving Setup을 가지고 있으며, Console에 나열된 지문 인 아티팩트 목록 목록을 볼 수도 있습니다.
해결책
Some recommendations I would suggest:
Do NOT archive and fingerprint in a promotion process. A promotion process is really a separate job and a separate build. Instead, you should archive and fingerprint the files in the Compile job's Post-build Actions. The compile job has to be the origin of the fingerprint for the promotion process to work robustly.
In the Deploy job, somehow get the same file that was fingerprinted in the Compile job and also fingerprint it in the Deploy job.
I can't see how the Deploy job is getting the jar file. I would recommend using the Copy Artifact plugin that uses parameters - specifically a build number or perhaps the upstream-build - to retrieve the same file.