-
Notifications
You must be signed in to change notification settings - Fork 16
/
Jenkinsfile
52 lines (35 loc) · 1.62 KB
/
Jenkinsfile
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
import groovy.json.JsonOutput
ZARCHO_GIT = "[email protected]:${params.zarcho_user}/zarcho.git"
GITHUB_AUTH = 'github_auth_id'
@Library('pipelinex@development')
import com.iguazio.pipelinex.DockerRepo
library identifier: "zarcho@${params.zarcho_branch}", retriever: modernSCM(
[$class: 'GitSCMSource',
credentialsId: GITHUB_AUTH,
remote: ZARCHO_GIT]) _
builder.set_job_properties([
string(defaultValue: 'REPLACE_ME', description: '', name: 'build_version'),
string(defaultValue: 'development', description: '', name: 'flex_fuse_branch'),
string(defaultValue: 'v3io', description: '', name: 'flex_fuse_user'),
string(defaultValue: 'next', description: '', name: 'zarcho_branch'),
string(defaultValue: 'iguazio', description: '', name: 'zarcho_user'),
string(defaultValue: 'short', description: '', name: 'workflow'),
booleanParam(defaultValue: false, description: '', name: 'publish_to_public_registries'),
])
common.notify_slack {
common.set_current_display_name(params.build_version)
stage('git clone') {
nodes.any_builder_node {
builder.clone_zarcho(params.zarcho_user, params.zarcho_branch)
}
}
def snapshot = ['k8s-flex-fuse':
['flex-fuse':
['branch': params.flex_fuse_branch,
'git_url': "[email protected]:${params.flex_fuse_user}/flex-fuse.git",
]
]
]
k8s.build_flex_fuse(params.build_version, JsonOutput.toJson(snapshot), params.workflow,
params.publish_to_public_registries)
}