Skip to content
Snippets Groups Projects
Unverified Commit eb4b8918 authored by Bhanu Prakash Reddy's avatar Bhanu Prakash Reddy Committed by GitHub
Browse files

Merge pull request #7 from beckn/devops/jenkins

Create Jenkins
parents 0ad7bad5 4730be63
No related branches found
No related tags found
Loading
Jenkins 0 → 100644
pipeline {
agent any
stages {
stage('Executing Shell Script On Server') {
steps {
script {
sshagent(credentials: ['"${credentials}"']) {
sh '''
ssh -t -t ${userName}@${hostIP} -o StrictHostKeyChecking=no << EOF
${listOfCommands}
logout
EOF
'''
}
}
}
}
}
post {
always {
cleanWs()
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment