Compare commits

..

No commits in common. '8683bbee1f807d994afa96ac8ce3c1a0ca47e4ac' and 'd5e186f64b1ea1e55aad2299c6eece0201c6fbf5' have entirely different histories.

4
Jenkinsfile vendored

@ -1,5 +1,5 @@
pipeline { pipeline {
agent { label 'Linux' } agent any
stages { stages {
stage('Build Docker Image') { stage('Build Docker Image') {
environment { environment {
@ -36,8 +36,6 @@ pipeline {
SERVER_PORT = credentials('736149c1-675d-470d-abce-3fb9e8e146c0') SERVER_PORT = credentials('736149c1-675d-470d-abce-3fb9e8e146c0')
} }
steps { steps {
sh 'apt update -y'
sh 'apt install -y sshpass'
sh 'sshpass -p $SERVER_CREDENTIALS_PSW ssh -p $SERVER_PORT $SERVER_CREDENTIALS_USR@$SERVER_IP "cd /data/kotadoc && kubectl delete pods kotadoc && kubectl apply -f kotadoc.yaml"' sh 'sshpass -p $SERVER_CREDENTIALS_PSW ssh -p $SERVER_PORT $SERVER_CREDENTIALS_USR@$SERVER_IP "cd /data/kotadoc && kubectl delete pods kotadoc && kubectl apply -f kotadoc.yaml"'
} }
} }

Loading…
Cancel
Save