Skip to content

Commit

Permalink
Hotfix Jenkinsfiles with typos in env var names
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Jan 23, 2020
1 parent d7f63fa commit f61ad90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker/dataverse-k8s/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void setBuildStatus(String message, String state) {
pipeline {
agent any
environment {
DOCKER_IMAGE = "iqss/dataverse-k8s"
DOCKER_IMAGE_NAME = "iqss/dataverse-k8s"
DOCKER_IMAGE_TAG = "build-${env.BRANCH_NAME}"
DOCKER_FILE = "./docker/dataverse-k8s/glassfish/Dockerfile"
DOCKER_WORKDIR = "."
Expand All @@ -36,7 +36,7 @@ pipeline {
}
steps {
script {
docker_image = docker.build("${env.DOCKER_IMAGE}:${env.DOCKER_IMAGE_TAG}", "--pull -f ${env.DOCKER_FILE} ${env.DOCKER_WORKDIR}")
docker_image = docker.build("${env.DOCKER_IMAGE_NAME}:${env.DOCKER_IMAGE_TAG}", "--pull -f ${env.DOCKER_FILE} ${env.DOCKER_WORKDIR}")
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docker/solr-k8s/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void setBuildStatus(String message, String state) {
pipeline {
agent any
environment {
DOCKER_IMAGE = "iqss/solr-k8s"
DOCKER_IMAGE_NAME = "iqss/solr-k8s"
DOCKER_IMAGE_TAG = "build-${env.BRANCH_NAME}"
DOCKER_WORKDIR = "docker/solr-k8s"
DOCKER_HUB_CRED = "dockerhub-dataversebot"
Expand All @@ -35,7 +35,7 @@ pipeline {
}
steps {
script {
docker_image = docker.build("${env.DOCKER_IMAGE}:${env.DOCKER_IMAGE_TAG}", "--pull ${env.DOCKER_WORKDIR}")
docker_image = docker.build("${env.DOCKER_IMAGE_NAME}:${env.DOCKER_IMAGE_TAG}", "--pull ${env.DOCKER_WORKDIR}")
}
}
}
Expand All @@ -58,7 +58,7 @@ pipeline {
}
steps {
script {
docker.withRegistry("${env.DOCKER_REGISTRY}", "${env.DOCKER_HUB_LOGIN}") {
docker.withRegistry("${env.DOCKER_REGISTRY}", "${env.DOCKER_HUB_CRED}") {
docker_image.push("${env.DOCKER_IMAGE_TAG}")
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/images/push-description.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TOKEN=$(curl -sS -f -H "Content-Type: application/json" -X POST -d ${LOGIN_PAYLO

# Send a PATCH request to update the description of the repository
echo "Sending PATCH request"
REPO_URL="https://hub.docker.com/v2/repositories/${DOCKER_IMAGE}/"
REPO_URL="https://hub.docker.com/v2/repositories/${DOCKER_IMAGE_NAME}/"
RESPONSE_CODE=$(curl -sS -f --write-out %{response_code} --output /dev/null -H "Authorization: JWT ${TOKEN}" -X PATCH --data-urlencode full_description@${DESCRIPTION_FILE} ${REPO_URL})
echo "Received response code: $RESPONSE_CODE"

Expand Down

0 comments on commit f61ad90

Please sign in to comment.