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

Create Jenkinsfile

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