You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
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.
17
17
18
18
##Details
19
19
20
-
###Configure CronTrigger Message
20
+
###Configure Crontrigger message
21
21
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".
23
23
24
24
###Implement Conditional Step
25
25
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:
27
27
28
28
{% raw %}
29
29
@@ -43,14 +43,10 @@ Utilize the EVENT_MESSAGE variable in your pipeline steps with a condition like:
43
43
44
44
{% endraw %}
45
45
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).
47
47
48
48
##Related Items
49
-
50
-
[Triggers in pipelines]({{site.baseurl}}/docs/pipelines/triggers/)
Copy file name to clipboardExpand all lines: _docs/pipelines/triggers/cron-triggers.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ There are two parts to creating a Cron trigger in the UI:
72
72
1. (Optional) Selecting additional options:
73
73
* 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.
74
74
* 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
76
76
77
77
78
78
@@ -198,6 +198,9 @@ For example, `@every 1h30m10s` would indicate a schedule that triggers every 1 h
198
198
>**NOTE:**
199
199
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.
200
200
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/).