This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Step 1: Set the RSA Public Key in Both SCM (BitBucket and Github) | |
### Step 2: Ensure StrictHostKeyChecking no in /etc/ssh/ssh_config | |
### Step 3: Pass repo names as Parameter while executing the Script | |
### For Example: bash test.sh reponame | |
### Step 4: Make Sure Ensure You have same repo name in both SCM | |
for i in "$@" | |
do | |
git clone [email protected]:username/${i}.git | |
cd bbgg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Requirements | |
#### AWSCLI | |
#### Must execute aws configure command before Running the Script | |
import boto3 | |
import datetime | |
import itertools | |
client = boto3.client("ec2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To Create a SFTP server for user to login and access particular folder | |
Steps 1: Create an additional folder and assign root access alone | |
# mkdir -p /data | |
# chmod 701 /data | |
Step 2: Create a group for the SFTP user's |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
stages { | |
stage('Build') { | |
steps { | |
script { | |
if (env.BRANCH_NAME == 'test') { | |
sshPublisher( | |
publishers: [ | |
sshPublisherDesc( |