Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
Build: Hardcode the docker build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroamador committed Feb 25, 2020
1 parent 4763ba2 commit a8f2e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
@Library('github.com/teecke/jenkins-pipeline-library@v3.4.1') _

// Initialize global config
cfg = jplConfig('gp-statics', 'docker', '', [email: env.CITEECKE_NOTIFY_EMAIL_TARGETS])
cfg = jplConfig('gp-nginx', 'docker', '', [email: env.CITEECKE_NOTIFY_EMAIL_TARGETS])

def publishDockerImage(nextReleaseNumber = "") {
if (nextReleaseNumber == "") {
nextReleaseNumber = sh (script: "kd get-next-release-number .", returnStdout: true).trim().substring(1)
}
docker.withRegistry("https://registry.hub.docker.com", 'teeckebot-docker-credentials') {
def customImage = docker.build("teecke/${cfg.projectName}:${nextReleaseNumber}", "--pull --no-cache ${cfg.projectName.substring(3)}")
def customImage = docker.build("teecke/${cfg.projectName}:${nextReleaseNumber}", "--pull --no-cache statics}")
customImage.push()
if (nextReleaseNumber != "beta") {
customImage.push('latest')
Expand Down

0 comments on commit a8f2e32

Please sign in to comment.