Jenkins에서 React lint 오류로 build fail시 대처법

sangin cha·2022년 10월 20일
0

이번에 jenkins 서버와 Git Repository가 바뀌면서 Jenkins Job 이관작업을 진행했습니다.
작업을 완료하고 빌드 테스트를 진행하는 Frontend(React) Build Job에서 아래와 같은 오류가 발생했습니다.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Build step 'Execute shell' marked build as failure
[lockable-resources] released lock on [cms-front]
Finished: FAILURE

원인은 React lint warning 오류로 인해 발생하는 문제였습니다.

Line 288:96:  Unexpected string concatenation of literals no-useless-concat

warning인데 빌드가 안되는건 이해가 되지 않아 설정을 바꿔보기로 했습니다.

Jenkins > Configure System > Global properties에
Environment CI vaiables를 추가하여 해결 했습니다.

profile
소프트웨어의 사용성과 사용자의 만족을 소프트웨어의 최우선 가치로 여기는 소프트웨어 엔지니어

0개의 댓글