-
Notifications
You must be signed in to change notification settings - Fork 0
/
pushDockerfile.groovy
40 lines (38 loc) · 1.31 KB
/
pushDockerfile.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
properties([
parameters([
gitParameter(
branch: '',
branchFilter: '.*',
defaultValue: '',
description: 'Repository branches',
name: 'BRANCH',
quickFilterEnabled: true,
sortMode: 'NONE',
tagFilter: '*',
type: "PT_BRANCH",
useRepository: "https://github.com/ablatov/amazon-deequ-glue.git"
)
])
])
node('default-agent') {
stage('Checkout') {
checkout([
$class: 'GitSCM',
branches: [[name: "${BRANCH}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'CleanBeforeCheckout']
],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'creds_id', url: 'https://github.com/ablatov/amazon-deequ-glue.git']]
])
}
stage("pushDockerfile") {
env.PATH = """${tool name: 'dock-push-dockerfile', type: 'com.cloudbees.jenkins.plugins.customtools.CustomTool'}:${env.PATH}"""
pushDockerfile (
pushDockerfileCredentialsId: 'creds_id',
pushDockerfileOnlyBuild: false,
pushDockerfileBuildDir: 'backend'
)
}
}