Skip to content

Commit

Permalink
Merge pull request #236 from markhamstra/csd-2.3
Browse files Browse the repository at this point in the history
Jenkinsfile changes
  • Loading branch information
markhamstra authored Jun 13, 2018
2 parents ee2a48a + 4992b65 commit 1ea3715
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def prBuilder(){

def releaseBuilder(){
def mvnArgs="-Pdeb -U -Phadoop-2.7 -Dhadoop.version=2.8.2 -Pkubernetes -Pyarn -Phive -Phive-thriftserver -Dpyspark -Dsparkr -DskipTests -Dgpg.skip=true -Dmaven.javadoc.skip=true"
def dockerMvnArgs="--name custom-spark --pip --tgz -Psparkr -Phadoop-2.7 -Phive -Phive-thriftserver -Pyarn -Pkubernetes -Dhadoop.version=2.8.2"
stage('Release Clean'){
// We need to check out the branch as a "symbolic ref" (i.e. not as an SHA1), otherwise
// Maven Release plugin won't be able to push to the branch.
Expand Down Expand Up @@ -85,10 +84,11 @@ def releaseBuilder(){
}
stage('Release Docker Image'){
def dockerVersion = "csd-2.3.1-${spark_version.split('-')[-1]}"
def repo = "628897842239.dkr.ecr.us-west-2.amazonaws.com"
sh """
dev/make-distribution.sh ${dockerMvnArgs} package
bin/docker-image-tool.sh -r 628897842239.dkr.ecr.us-west-2.amazonaws.com -t ${dockerVersion} build
bin/docker-image-tool.sh -r 628897842239.dkr.ecr.us-west-2.amazonaws.com -t ${dockerVersion} push
dev/make-distribution.sh --name custom-spark --pip --tgz -Psparkr -Phadoop-2.7 -Phive -Phive-thriftserver -Pyarn -Pkubernetes -Dhadoop.version=2.8.2
bin/docker-image-tool.sh -r ${repo} -t ${dockerVersion} build
bin/docker-image-tool.sh -r ${repo} -t ${dockerVersion} push
"""
}
}
Expand Down

0 comments on commit 1ea3715

Please sign in to comment.