사용자 도구

사이트 도구


ci:jenkins:pipeline

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
ci:jenkins:pipeline [2018/11/28 16:08]
kwon37xi [JUnit 테스트 결과 메일/Slack 발송]
ci:jenkins:pipeline [2022/05/30 23:10] (현재)
kwon37xi [lint]
줄 8: 줄 8:
   * [[https://jenkins.io/doc/pipeline/examples/|Pipeline Examples]]   * [[https://jenkins.io/doc/pipeline/examples/|Pipeline Examples]]
   * [[https://jenkins.io/doc/book/pipeline/syntax/|Pipeline 문법]]   * [[https://jenkins.io/doc/book/pipeline/syntax/|Pipeline 문법]]
 +
 +===== Snippet Generator =====
 +  * ''$JENKINS_URL/pipeline-syntax/'' 에서 각 스텝별로 UI로 구성해서 pipeline script snippet 을 만들수있다.
 +
 +===== lint =====
 +  * [[https://www.youtube.com/watch?v=9IjKUGn2TIk|How to Lint Jenkins Declarative Pipelines From the Command Line - YouTube]]
 +  * [[https://www.jenkins.io/doc/book/pipeline/development/|Pipeline Development Tools]]
 +  * [[ci:jenkins:cli|Jenkins CLI]] 에서 ''declarative-linter'' 명령으로 lint
  
 ===== 기본 환경변수 ===== ===== 기본 환경변수 =====
줄 91: 줄 99:
 } }
 </code> </code>
 +
 +===== Pipeline 에서 입력 값 받기 =====
 +  * [[https://www.youtube.com/channel/UCKlF3GIFy9KVUefVbycx_vw|What Is an Input in Jenkins? - YouTube]]
 +  * **입력 값은 ''agent none'' 으로 받고, 후속 작업에 대해서 ''agent''를 지정**해야 해당 agent가 입력에 의해 blocking 되는 것을 막을 수 있다.
  
 ===== JUnit 테스트 결과 메일/Slack 발송 ===== ===== JUnit 테스트 결과 메일/Slack 발송 =====
줄 155: 줄 167:
 } }
 </code> </code>
 +
 +===== parallel pipeline =====
 +  * [[https://www.youtube.com/watch?v=6wNbjP2WUMo|How Do You Run Jenkins Steps in Parallel? - YouTube]]
 +  * 여러 장비를 [[ci:jenkins:agent|Jenkins Agent ( slave )]]로 연결해서, 각 에이전트에서 동시에 pipeline을 실행할 수 있다.
 +  * [[https://www.jenkins.io/doc/book/pipeline/syntax/#parallel|Pipeline Syntax]]
 +
 ===== 참조 ===== ===== 참조 =====
   * [[https://reidweb.com/2017/02/01/what-ive-learnt-about-jenkins-pipelines/|What I've learnt about Jenkins Pipelines]]   * [[https://reidweb.com/2017/02/01/what-ive-learnt-about-jenkins-pipelines/|What I've learnt about Jenkins Pipelines]]
  
ci/jenkins/pipeline.1543388936.txt.gz · 마지막으로 수정됨: 2018/11/28 16:08 저자 kwon37xi