Commit 2f06586f authored by Josh Steinberg's avatar Josh Steinberg

update creds

parent 46c86b16
......@@ -8,9 +8,7 @@ pipeline {
NEXUS_PROTOCOL = "http"
NEXUS_URL = "10.20.3.15:8081"
NEXUS_REPOSITORY = "maven-nexus-repo-jenkins"
NEXUS_CREDENTIAL_ID = "nexus-jenkins"
REMOTE_AGENT = "34.125.61.40"
USER = "root"
NEXUS_CREDENTIAL_ID = "jenkins-nexus"
}
stages {
stage('Git Checkout') {
......@@ -59,13 +57,7 @@ pipeline {
stage("Build Docker Image and Helm Deploy to Kubernetes"){
steps{
sshagent(credentials: ['ssh-cred']){
sh '''
mkdir /.ssh && chmod 0700 /.ssh
ssh-keyscan -t rsa,dsa ${REMOTE_AGENT} >> /.ssh/known_hosts
ssh ${USER}@${REMOTE_AGENT} "echo hello"
'''
}
sh 'docker build -t test-image .'
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment