Fix setting creds

This commit is contained in:
Nana Janashia
2021-04-03 19:03:39 +02:00
parent f883a86564
commit 009e4e7cb3
2 changed files with 5 additions and 3 deletions

View File

@@ -41,7 +41,9 @@ pipeline {
sshCommand remote: remote, command: "ls -l"
// set AWS credentials
sshScript remote: remote, script: "ansible/prepare-server.sh ${AWS_ACCESS_KEY_ID} ${AWS_SECRET_ACCESS_KEY}"
sshScript remote: remote, script: "ansible/prepare-server.sh"
sshCommand remote: remote, command: 'export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID'
sshCommand remote: remote, command: 'export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY'
sshCommand remote: remote, command: "ansible-playbook docker-and-compose.yaml"
}

View File

@@ -5,7 +5,7 @@ apt install ansible -y
apt install python3-pip -y
pip3 install boto3 botocore
export AWS_ACCESS_KEY_ID=$1
export AWS_SECRET_ACCESS_KEY=$2
# export AWS_ACCESS_KEY_ID=$1
# export AWS_SECRET_ACCESS_KEY=$2