Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b294d2

Browse files
committed
Update how to article
Edited how to article and added xref to article in cron trigger topic
1 parentc728167 commit3b294d2

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

‎_docs/kb/articles/skip-test-if-pipeline-is-triggered-with-cron.md‎

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title:"How To: SkipStep If Pipeline Is Triggered With Cron"
2+
title:"How To: Skipstep if pipeline triggered with Cron"
33
description:
44
group:kb
55
sub-group:articles
@@ -13,17 +13,17 @@ support-reviewed: 2023-12-12 MB
1313

1414
##Overview
1515

16-
You have a buildthat is triggered bymultiple triggers, and you need to skip a certain step if the pipeline was launched using acron trigger.
16+
You have a buildwithmultiple triggers, and you need to skip a certain step if the pipeline was launched using aCron trigger.
1717

1818
##Details
1919

20-
###Configure CronTrigger Message
20+
###Configure Crontrigger message
2121

22-
Inyour crontrigger configuration, set a message (e.g., "using cron") in the Message field.
22+
Inthe**Message** field in the Crontrigger configuration, set a message, for example, "using cron".
2323

2424
###Implement Conditional Step
2525

26-
Utilize the EVENT_MESSAGE variable in your pipeline steps with a conditionlike:
26+
Utilize the`EVENT_MESSAGE` variable in your pipeline steps with a conditionas in the following example:
2727

2828
{% raw %}
2929

@@ -43,14 +43,10 @@ Utilize the EVENT_MESSAGE variable in your pipeline steps with a condition like:
4343

4444
{% endraw %}
4545

46-
Thisensures specific steps execute only when thecronjob message is different from"using cron" and pipeline is triggered bycron.
46+
The conditionensuresthatspecific steps execute only when thepipeline is triggered by Cron and the Cronjob message is different fromthe one defined in the Message field ("usingcron" in our example).
4747

4848
##Related Items
49-
50-
[Triggers in pipelines]({{site.baseurl}}/docs/pipelines/triggers/)
51-
52-
[Cron trigger event variables]({{site.baseurl}}/docs/pipelines/triggers/cron-triggers/#cron-event-payload)
53-
54-
[Conditional execution of steps]({{site.baseurl}}/docs/pipelines/conditional-execution-of-steps/)
55-
56-
[Freestyle step]({{site.baseurl}}/docs/pipelines/steps/freestyle/)
49+
[Triggers in pipelines]({{site.baseurl}}/docs/pipelines/triggers/)
50+
[Cron trigger event variables]({{site.baseurl}}/docs/pipelines/triggers/cron-triggers/#cron-event-payload)
51+
[Conditional execution of steps]({{site.baseurl}}/docs/pipelines/conditional-execution-of-steps/)
52+
[Freestyle step]({{site.baseurl}}/docs/pipelines/steps/freestyle/)

‎_docs/pipelines/triggers/cron-triggers.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ There are two parts to creating a Cron trigger in the UI:
7272
1. (Optional) Selecting additional options:
7373
* Git trigger event to simulate when the Cron trigger timer is activated. The pipeline is populated with the information from the Git repo such as the repo URL, branch name, latest commit information, including the date and author of the commit.
7474
* Variables to populate for the build
75-
* Caching, volumeresuse and notification behavior to override for the build
75+
* Caching, volumereuse and notification behavior to override for the build
7676

7777

7878

@@ -198,6 +198,9 @@ For example, `@every 1h30m10s` would indicate a schedule that triggers every 1 h
198198
>**NOTE:**
199199
The interval does not take the runtime of the job into account. For example, if a job takes three minutes to run, and it is scheduled to run every five minutes, it will have only two minutes of idle time between each run.
200200

201+
###Conditional triggers for Cron jobs
202+
Take a look at our Knowledge Base how-to:[Skip pipeline step if triggered by Cron job]({{site.baseurl}}/docs/kb/articles/skip-test-if-pipeline-is-triggered-with-cron/).
203+
201204
##Cron triggers with Codefresh CLI
202205

203206
>**NOTE**:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp