Skip to content

Commit 3e1588f

Browse files
author
Vaughn Dice
committed
ref(Jenkinsfile): remove sdk-related params and logic
per deis/controller-sdk-go#46
1 parent fb6f4d2 commit 3e1588f

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

Jenkinsfile

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ def workdir_linux = { String gopath ->
2424
gopath + workpath_linux
2525
}
2626

27-
properties([[$class: 'ParametersDefinitionProperty',
28-
parameterDefinitions: [
29-
[$class: 'StringParameterDefinition',
30-
defaultValue: '',
31-
description: 'controller-sdk-go commit sha to use in glide.yaml (not updated if empty)',
32-
name : 'SDK_SHA'],
33-
[$class: 'StringParameterDefinition',
34-
defaultValue: '',
35-
description: 'controller-sdk-go repo to use in glide.yaml (not updated if empty)',
36-
name: 'SDK_GO_REPO']
37-
]]])
38-
3927
node('windows') {
4028
def gopath = pwd() + "\\gopath"
4129
env.GOPATH = gopath
@@ -107,20 +95,6 @@ parallel(
10795
}
10896

10997
sh 'make bootstrap'
110-
111-
if (SDK_GO_REPO && SDK_SHA) {
112-
echo "Updating local glide.yaml with controller-sdk-go repo '${SDK_GO_REPO}' and version '${SDK_SHA}'"
113-
114-
def pattern = "github\\.com\\/deis\\/controller-sdk-go\\n\\s+version:\\s+[a-f0-9]+"
115-
def replacement = "${SDK_GO_REPO.replace("/", "\\/")}\\n version: ${SDK_SHA}"
116-
sh "perl -i -0pe 's/${pattern}/${replacement}/' glide.yaml"
117-
118-
def glideYaml = readFile('glide.yaml')
119-
echo "Updated glide.yaml:\n${glideYaml}"
120-
121-
sh 'make glideup'
122-
}
123-
12498
sh "VERSION=${git_commit.take(7)} make build-revision"
12599

126100
upload_artifacts(keyfile)

0 commit comments

Comments
 (0)