## 작업 비활성화시, 앞에 콤마(.) 생성
- 이전 단계의 종속성에 의존하지 않는다면 단순히 작업을 비활성화할 수 있습니다.
.build website:
.test artifact:
=================================================
Sometimes you only may want to work on some specific jobs or in some specific stages, and when you're
working on a specific stage, especially if it's towards the end, you don't really want for the entire
thing to build and take so much time.
So if you do not rely on any dependencies from the previous stages, you can simply disable the jobs.
And in order to disable the jobs, for example, I can disable build website by specifying, by adding
a dot before that.
And this is commenting.
This is disabling the job so the job will not be executed.
So anything that has a dot in front of it will not be executed.
And if this takes you to the proper step in your problem, it would be an idea on how you can make that
run faster without making major changes, commenting code or removing code or something.
Just an idea on how you can easily work on a specific stage without messing up the entire pipeline.
'[AWS] > GITLAB' 카테고리의 다른 글
46장. 작업 템플릿 만들기 (0) | 2022.02.21 |
---|---|
45장. Anchors (0) | 2022.02.21 |
43장. YAML 이해하기 (1) | 2022.02.21 |
42장. YAML Overview (0) | 2022.02.21 |
41장. 요약 및 결론 (0) | 2022.02.21 |
댓글