Skip to content

Commit

Permalink
#79 Jenkins file changed for new setup
Browse files Browse the repository at this point in the history
  • Loading branch information
asimazmi committed Apr 23, 2020
1 parent dfd176b commit a1f7419
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get update &&
Expand All @@ -130,8 +130,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get upgrade -y &&
Expand All @@ -150,8 +150,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get upgrade -y &&
Expand All @@ -168,8 +168,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get update &&
Expand All @@ -186,8 +186,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get update &&
Expand All @@ -203,8 +203,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get update &&
Expand All @@ -220,8 +220,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get update &&
Expand All @@ -237,8 +237,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get update &&
Expand All @@ -255,8 +255,8 @@ pipeline {
steps {
sh '''
chmod 400 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@149.165.169.178 uptime
ssh -i id_rsa ubuntu@149.165.169.178 "sudo apt install gnupg2 pass -y &&
ssh -o StrictHostKeyChecking=no -i id_rsa ubuntu@129.114.104.27 uptime
ssh -i id_rsa ubuntu@129.114.104.27 "sudo apt install gnupg2 pass -y &&
sudo apt install git -y &&
sudo docker login --username=devengers --password=DEVENGERS@2019 &&
sudo apt-get update &&
Expand Down
2 changes: 1 addition & 1 deletion kube-cluster/kube-cluster/initial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
- name: set up authorized keys for the asim user
authorized_key: user=asim key="{{item}}"
with_file:
- ~/.ssh/devenger-api-key.pub
- ~/.ssh/id_rsa.pub

0 comments on commit a1f7419

Please sign in to comment.