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

Create Jenkins

parent 0ad7bad5
No related branches found
No related tags found
No related merge requests found
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