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
/
publish.groovy
59 lines (56 loc) · 1.76 KB
/
publish.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
57
58
59
/*****************************************************************************
* *
* 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_SRC_TAG
Type: String
Default: latest
Description: Docker tag name for source images
===
Name: DOCKER_SRC_REGISTRY
Type: String
Description: Registry host and port for source images.
===
Name: DOCKER_SRC_ORGANIZATION
Type: String
Default: oscmdocker
Description: Organization name for source images.
===
Name: DOCKER_DST_TAG
Type: String
Default: latest
Description: Docker tag name for destination images
===
Name: DOCKER_DST_ORGANIZATION
Type: String
Description: Organization name for destination images.
===
Name: USERNAME
Type: String
Description: Username for the target <DOCKER_DST_REGISTRY>
===
Name: PASSWORD
Type: String
Description: Password for the target <DOCKER_DST_REGISTRY>
===
**/
node("${NODE_NAME}") {
def push = evaluate readTrusted('shared/push.groovy')
IMAGES = "db initdb core app identity mail birt branding help deployer maildev proxy"
push.execute(true, true, IMAGES)
}