Skip to content

Commit

Permalink
ref(Jenkinsfile): remove sdk-related params and logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaughn Dice committed Jul 19, 2016
1 parent 2862f05 commit d46354c
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ def workdir_linux = { String gopath ->
gopath + workpath_linux
}

properties([[$class: 'ParametersDefinitionProperty',
parameterDefinitions: [
[$class: 'StringParameterDefinition',
defaultValue: '',
description: 'controller-sdk-go commit sha to use in glide.yaml (not updated if empty)',
name : 'SDK_SHA'],
[$class: 'StringParameterDefinition',
defaultValue: '',
description: 'controller-sdk-go repo to use in glide.yaml (not updated if empty)',
name: 'SDK_GO_REPO']
]]])

node('windows') {
def gopath = pwd() + "\\gopath"
env.GOPATH = gopath
Expand Down Expand Up @@ -107,20 +95,6 @@ parallel(
}

sh 'make bootstrap'

if (SDK_GO_REPO && SDK_SHA) {
echo "Updating local glide.yaml with controller-sdk-go repo '${SDK_GO_REPO}' and version '${SDK_SHA}'"

def pattern = "github\\.com\\/deis\\/controller-sdk-go\\n\\s+version:\\s+[a-f0-9]+"
def replacement = "${SDK_GO_REPO.replace("/", "\\/")}\\n version: ${SDK_SHA}"
sh "perl -i -0pe 's/${pattern}/${replacement}/' glide.yaml"

def glideYaml = readFile('glide.yaml')
echo "Updated glide.yaml:\n${glideYaml}"

sh 'make glideup'
}

sh 'make build-revision'

upload_artifacts(keyfile)
Expand Down

0 comments on commit d46354c

Please sign in to comment.