Skip to content

Commit

Permalink
ci(jenkins): enable fix-permissions to be executed without running ma…
Browse files Browse the repository at this point in the history
…ke too (elastic#16130)

* ci(jenkins): enable fix-permissions to be executed without running make too

* ci(jenkins): go modules are stored in the HOME path

* ci(jenkins): fix permissions should run only if docker is enabled
  • Loading branch information
v1v authored and kvch committed Feb 20, 2020
1 parent 3c49ac7 commit 35a20bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -542,13 +542,16 @@ pipeline {
}
}

def makeTarget(context, target){
def makeTarget(context, target, clean = true){
withGithubNotify(context: "${context}") {
withBeatsEnv(){
sh(label: "Make ${target}", script: """
eval "\$(gvm use ${GO_VERSION} --format=bash)"
make ${target}
""")
if(clean) {
sh(script: 'script/fix_permissions.sh ${HOME}')
}
}
}
}
Expand Down

0 comments on commit 35a20bb

Please sign in to comment.