Skip to content

Commit

Permalink
Renamed images
Browse files Browse the repository at this point in the history
  • Loading branch information
Zajs committed Sep 15, 2017
1 parent 5496e1f commit 47f128d
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 @@ -50,9 +50,8 @@ def isReleaseJob() {
}

def generateTagComment(releaseVersion){
jenkinsLastCommit = sh(returnStdout: true, script: "git log --pretty=\"%H\" --author=jenkinsci -1").trim()
commitsList=sh(returnStdout: true, script: "git log --pretty=\"* %s (%an)\" ${jenkinsLastCommit}...HEAD").trim()
return "Release: ${releaseVersion} \n${commitsList}"
commitsList=sh(returnStdout: true, script: "git log --pretty=\"%s\n\r (%an)\" -1").trim()
return "${commitsList}"
}

def createReleaseInGithub(gitCredentialId, organization, repository, releaseVersion, message){
Expand Down Expand Up @@ -126,8 +125,9 @@ node("JenkinsOnDemand") {
sh "docker push hydrosphere/serving-runtime-sparklocal:${curVersion}"
sh "docker push hydrosphere/serving-runtime-tensorflow:${curVersion}"

createReleaseInGithub(gitCredentialId, organization, repository,curVersion,tagComment)
pushSource(gitCredentialId, organization, repository, "refs/tags/${curVersion}")

createReleaseInGithub(gitCredentialId, organization, repository,curVersion,tagComment)
}
}
}

0 comments on commit 47f128d

Please sign in to comment.