-
Notifications
You must be signed in to change notification settings - Fork 16
/
Gradle-Pipelines.yaml
107 lines (90 loc) · 3.33 KB
/
Gradle-Pipelines.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
pipelines:
- name: gradle_build
configuration:
environmentVariables:
readOnly:
Version: 1.0.$run_number
dockerImage: 34.107.212.223/team1-docker/gradle-app
steps:
- name: gradle_bld_svc_demo
type: GradleBuild
configuration:
runtime:
type: image
image:
custom:
# THe Docker image is used to support a java 8 image for the gradle build
name: docker.bintray.io/jfrog/pipelines-u16java
tag: "8"
gradleCommand: clean artifactoryPublish -b build.gradle
sourceLocation: tutorial/step1-create-gradle-app
configFileLocation: .
configFileName: jfrog-gradle.yml
forceXrayScan: false
autoPublishBuildInfo: true
inputResources:
- name: orbitera_gitRepo_demo
outputResources:
- name: gradleBuildInfo
integrations:
- name: artifactory
execution:
onStart:
# Used for internal environment variables for the gradle build
- export artifactory_plugins_url="${int_artifactory_url}"/jcenter-gradle-remote
- export artifactory_libs_url="${int_artifactory_url}"/team1-gradle
- name: gradle_scan
type: XrayScan
configuration:
#inherits from bash
waitUntilFinish: true
inputResources:
- name: gradleBuildInfo
trigger: true
outputResources:
- name: scanned_gradleBuild_Info
- name: gradle_promote
type: PromoteBuild
configuration:
targetRepository: team1-gradle-staging-us
includeDependencies: false
status: Passed
comment: Artifact passed Xray Scan
copy: true
inputResources:
- name: scanned_gradleBuild_Info # optional
trigger: true
outputResources:
- name: promoted_gradleBuild_Info
- name: Gradle_docker_build
type: DockerBuild
configuration:
dockerFileLocation: tutorial/step3-create-docker-multi-app
dockerFileName: Dockerfile
dockerImageName: ${ArtIP}/team1-docker/gradle-app
# dockerImageName: ${dockerImage}
dockerImageTag: ${Version}
inputResources:
- name: orbitera_gitRepo_demo
- name: gradle_fileSpec
- name: promoted_gradleBuild_Info
trigger: true
integrations:
- name: artifactory
execution:
onStart:
- export ArtIP=$(echo ${int_artifactory_url}|awk -F '/' '{print $3}'|awk -F ':' '{print $1}')
- printenv
- mkdir -p tutorial/step3-create-docker-multi-app/package
- name: Gradle_docker_push
type: DockerPush
configuration:
targetRepository: team1-docker
forceXrayScan: false
autoPublishBuildInfo: true
integrations:
- name: artifactory
inputSteps:
- name: Gradle_docker_build
outputResources:
- name: docker_gradleBuild_Info