Files
django-example-app/Jenkinsfile
Basyrov Rustam 0169c28170 make new ssh
2025-06-09 11:58:45 +03:00

30 lines
660 B
Groovy

pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello from Jenkins'
}
}
stage('Connect to server') {
steps {
withCredentials([
sshUserPrivateKey(
credentialsId: '73d234d2-3f9d-44e9-97fc-b6317070b462',
keyFileVariable: 'SSH_PRIVATE_KEY'
)
]) {
sh "ssh -i $SSH_PRIVATE_KEY saccada@saccada.xyz 'find ~/ws'"
}
}
}
}
post {
always {
sleep 5
}
}
}