Skip to content

Commit

Permalink
Add .netrc for Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbode committed Jun 19, 2020
1 parent 32473bb commit 29fc55c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ pipeline {
ELASTICSEARCH_VERSION = '7.2.0'
INGRESS_NODE_PORT = sh(script: "shuf -i 30000-32767 -n 1" , returnStdout: true)
KUBECONFIG = '~/.kube/config'
NETRC_FILE = credentials('netrc')
}

stages {
stage('Clean workspace and checkout') {
steps {
checkout scm
sh """
cp -f "${NETRC_FILE}" $HOME/.netrc
chmod 600 $HOME/.netrc
"""
sh """
echo "${DOCKER_CREDS_PSW}" | docker login ${env.DOCKER_REPO} -u ${DOCKER_CREDS_USR} --password-stdin
rm -rf ${GO_REPO_PATH}/verrazzano-monitoring-operator
Expand Down

0 comments on commit 29fc55c

Please sign in to comment.