SW-PRODUCT/개발
Jenkins로 ETL > 에서 특정 Job의 결과에 따라 다른 Job을 실행시키기
굴돌
2017. 11. 6. 16:44
ETL 작업을 하다보면, source 쪽에 처리가 완료되면 이후 처리를 진행하는 경우가 발생함.
문제는 Source 쪽에서 언제 JOB이 끝날지 알려주지 않는 경우 polling을 할 수 밖에 없음.
이렇게 지속적으로 Polling을 하다가 Source가 준비가 끝나면 실제 JOB을 수행하기 위한 TIP
https://stackoverflow.com/a/16945102
- First Build Step:
- Does the regular work. In your case: building, unit testing and packaging of the web application
- Depending on the result let it create a file with a specific name.
- This means if you want the low-risk-change to run afterwards create a file low-risk.prop
- Second Build Step:
- Create a Trigger/call builds on other projects Step from the Parameterized-Trigger plugin.
- Entery the name of your low-risk job into the Projects to build field
- Click on: Add Parameter
- Choose: Parameters from properties File
- Enter low-risk.prop into the Use properties from file Field
- Enable Don't trigger if any files are missing
- Third Build Step:
- Check if a low-risk.prop file exists
- Delete the File