Files
django-example-app/Jenkinsfile
Basyrov Rustam 1a3bfcad85 privcacy fixes
2025-06-09 12:03:03 +03:00

30 lines
669 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 -p 2222 saccada@saccada.xyz "find ~/ws"')
}
}
}
}
post {
always {
sleep 5
}
}
}