.gitlab-ci.yml 540 Bytes
Newer Older
Nane Kratzke's avatar
Nane Kratzke committed
1
stages:
2
3
    - generate
    - consume
Nane Kratzke's avatar
Nane Kratzke committed
4

Nane Kratzke's avatar
Nane Kratzke committed
5
job1:
6
    stage: generate
Nane Kratzke's avatar
Nane Kratzke committed
7
    script:
8
        - mkdir build
Nane Kratzke's avatar
Nane Kratzke committed
9
        - echo "Hello I am job 1 executed on the $CI_COMMIT_BRANCH branch" > build/job-result.txt
10
11
12
    artifacts:
        paths:
            - build/
Nane Kratzke's avatar
Nane Kratzke committed
13

Nane Kratzke's avatar
Nane Kratzke committed
14
job2:
15
    stage: generate
Nane Kratzke's avatar
Nane Kratzke committed
16
    script:
17
        - mkdir build
Nane Kratzke's avatar
Nane Kratzke committed
18
        - echo "Hello I am job 2 executed on the $CI_COMMIT_BRANCH branch" > build/job-result.txt
19
20
21
22
    artifacts:
        paths:
            - build/
            
Nane Kratzke's avatar
Nane Kratzke committed
23
job3:
24
    stage: consume
Nane Kratzke's avatar
Nane Kratzke committed
25
    script:
26
        - cat build/*-result.txt