forked from ranjithrs-zz/jfrog-pipelines-simple-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipelines.yml
80 lines (78 loc) · 2.13 KB
/
pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
resources:
- name: myGitRepo
type: GitRepo
configuration:
gitProvider: my_github
path: enribus/jfrog-pipelines-simple-example
branches:
include: master
- name: myBuildInfo
type: BuildInfo
configuration:
sourceArtifactory: art
buildName: SampleApp
buildNumber: 1
pipelines:
- name: basic_pipeline
configuration:
environmentVariables:
readOnly:
my_env_var: "hello"
steps:
- name: step_1
type: Bash
configuration:
inputResources:
- name: myGitRepo
outputResources:
- name: myBuildInfo
execution:
onExecute:
- echo $my_env_var
- if [ -z $app_version ]; then add_pipeline_variables app_version=1.0.0; else app_version=$(bump_semver $app_version minor); fi
- write_output myBuildInfo "buildNumber=$app_version"
- add_run_variables run_var="hello"
- name: step_2
type: Bash
configuration:
inputResources:
- name: myBuildInfo
runtime:
type: image
image:
auto:
language: java
versions: ['11']
execution:
onExecute:
- echo $run_var
- echo $res_myBuildInfo_buildNumber
- name: step_3
type: Bash
configuration:
environmentVariables:
step_env_var1: "hello"
inputSteps:
- name: step_2
execution:
onExecute:
- echo $step_env_var1
- name: step_4
type: Bash
configuration:
inputSteps:
- name: step_2
execution:
onExecute:
- echo $app_version
- name: step_5
type: Bash
configuration:
inputSteps:
- name: step_3
- name: step_4
integrations:
- name: my_github
execution:
onExecute:
- 'curl -H "Authorization: token ${int_my_github_token}" ${int_my_github_url}/rate_limit'