We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8af64 commit 15be2a5Copy full SHA for 15be2a5
.gitlab/workflows/sample.yml
@@ -1,6 +1,16 @@
1
hello-world:
2
stage: test
3
- script:
4
- - echo "Hello, World from GitLab CI!"
5
rules:
6
- if: $CI_PIPELINE_SOURCE == "push"
+ - if: $CI_PIPELINE_SOURCE == "web"
+ - if: $CI_PIPELINE_SOURCE == "trigger"
7
+ variables:
8
+ PIPELINE_TRIGGER_TOKEN: $CI_PIPELINE_TRIGGER_TOKEN
9
+ script:
10
+ - echo "Hello, World from GitLab CI!"
11
+ - echo "Hello World!" > sample_artifact.txt
12
+ artifacts:
13
+ name: "sample-artifact"
14
+ paths:
15
+ - sample_artifact.txt
16
+ expire_in: 1 day
0 commit comments