문제

빌드를 홍보하기 위해 홍보 빌드 플러그인으로 Jenkins 1.452를 설치하고 있습니다. 나는 지금 매우 간단한 2 단계 프로모션 경로를 가지고 있습니다.

  1. 컴파일 및 설치 (JAR 생성)
  2. 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에 나열된 지문 인 아티팩트 목록 목록을 볼 수도 있습니다.

    컴파일 빌드 스크린 샷

    아카이브 된 아티팩트 W 지문을 보여주는 UAT 빌드

    UAT 빌드 작업 구성

도움이 되었습니까?

해결책

Some recommendations I would suggest:

  1. 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.

  2. In the Deploy job, somehow get the same file that was fingerprinted in the Compile job and also fingerprint it in the Deploy job.

  3. 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top