This repository has been archived by the owner on Jan 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
update-oscm-core.groovy
56 lines (52 loc) · 1.9 KB
/
update-oscm-core.groovy
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
/*****************************************************************************
* *
* Copyright FUJITSU LIMITED 2020 *
* *
* Creation Date: 16-07-2020 *
* *
****************************************************************************/
/**
How to use:
1. Create a job of type Pipeline
2. As the pipeline script paste this script
3. Create the following parameters (adjust defaults as you wish):
Required environment variables:
===
Name: NODE_NAME
Type: Option list
Default: -
Description: Nodes used to run the pipeline.
===
Name: DOCKER_TAG
Type: String
Default: latest
Description: Docker tag name for created images
===
Name: DOCKER_REGISTRY
Type: String
Description: Registry host and port for the final Docker image. Example: <DOCKER_REGISTRY>/<DOCKER_ORGANIZATION>/oscm-core:<DOCKER_TAG>
===
Name: DOCKER_ORGANIZATION
Type: String
Default: oscmdocker
Description: Organization name for the final Docker image. Example: <DOCKER_REGISTRY>/<DOCKER_ORGANIZATION>/oscm-core:<DOCKER_TAG>
===
Name: REPO_TAG_OSCM
Type: String
Default: master
Description: Branch or tag in the oscm git repository: https://github.com/servicecatalog/oscm
===
Name: REPO_TAG_DOCKERBUILD
Type: String
Default: master
Description: Branch or tag in the oscm-dockerbuild git repository: https://github.com/servicecatalog/oscm-dockerbuild
===
Name: ANT_URL
Type: String
Default: https://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz
Description: URL to download ant from.
**/
node("${NODE_NAME}") {
def update = evaluate readTrusted('updates/oscm-core.groovy')
update.execute()
}