-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Setting project version 0.7.0 and parent version 5.5.0-beta200…
…204173843.
- Loading branch information
1 parent
d9aabf3
commit 57ad1ae
Showing
31 changed files
with
144 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright [2017 - 2020] Confluent Inc. | ||
# | ||
|
||
set -e | ||
|
||
if [[ -z $NEXUS_USERNAME || -z $NEXUS_PASSWORD ]]; then | ||
echo "Please export env NEXUS_USERNAME and NEXUS_PASSWORD with Nexus username and password" | ||
exit 1 | ||
fi | ||
|
||
PIP_CONF=~/.pip/pip.conf | ||
|
||
mkdir -p `dirname $PIP_CONF` | ||
|
||
if [ -e $PIP_CONF ]; then | ||
echo "$PIP_CONF already exists and will be used" | ||
else | ||
echo -e "[global]\nindex-url = https://$NEXUS_USERNAME:$NEXUS_PASSWORD@nexus.confluent.io/repository/pypi/simple" > $PIP_CONF | ||
echo "Created $PIP_CONF with Nexus repository" | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright [2017 - 2020] Confluent Inc. | ||
# | ||
|
||
set -e | ||
|
||
if [[ -z $NEXUS_USERNAME || -z $NEXUS_PASSWORD ]]; then | ||
echo "Please export env NEXUS_USERNAME and NEXUS_PASSWORD with Nexus username and password" | ||
exit 1 | ||
fi | ||
|
||
PYPIRC=~/.pypirc | ||
|
||
if [ -e $PYPIRC ]; then | ||
echo "$PYPIRC already exists and will be used." | ||
else | ||
echo "\ | ||
[distutils] | ||
index-servers = | ||
nexus | ||
[nexus] | ||
repository: https://nexus.confluent.io/repository/pypi-internal/ | ||
username: $NEXUS_USERNAME | ||
password: $NEXUS_PASSWORD | ||
" > $PYPIRC | ||
echo "Created $PYPIRC with Nexus repository" | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright [2017 - 2020] Confluent Inc. | ||
# | ||
|
||
# Extract AWS credential using its assigned IAM role. | ||
# | ||
# This script is meant to be sourced by a parent script, so from your parent script: | ||
# . jenkins-common/scripts/aws/extract-iam-credential.sh | ||
|
||
[ -o xtrace ] && restore_trace='set -x' || restore_trace='set +x' | ||
set +x | ||
|
||
|
||
if [[ ${AWS_ACCESS_KEY_ID:-} && ${AWS_ACCESS_KEY:-} && ${AWS_SECRET_ACCESS_KEY:-} && ${AWS_SECRET_KEY:-} && ! ${AWS_SESSION_TOKEN:-} ]]; then | ||
echo "Using existing AWS credential from env" | ||
else | ||
echo "Extracting AWS credential based on IAM role" | ||
|
||
if [[ ! "${AWS_IAM:-}" ]];then | ||
# Get the iam rolename associated with this ec2 instance. The curl command actually fetches the iam instance profile associated with this ec2 node, | ||
# and what we really need is the iam role name, so we rely on the convention that | ||
# iam instance profile name and iam role name are the same | ||
export AWS_IAM=$(curl -s http://169.254.169.254/latest/meta-data/iam/info | grep InstanceProfileArn | cut -d '"' -f 4 | cut -d '/' -f 2) | ||
fi | ||
|
||
export AWS_ACCESS_KEY_ID=`curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/$AWS_IAM | grep AccessKeyId | awk -F\" '{ print $4 }'` | ||
export AWS_ACCESS_KEY="$AWS_ACCESS_KEY_ID" | ||
export AWS_SECRET_KEY=`curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/$AWS_IAM | grep SecretAccessKey | awk -F\" '{ print $4 }'` | ||
export AWS_SECRET_ACCESS_KEY="$AWS_SECRET_KEY" | ||
export AWS_SESSION_TOKEN=`curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/$AWS_IAM | grep Token | awk -F\" '{ print $4 }'` | ||
|
||
if [ -z "$AWS_ACCESS_KEY" ]; then | ||
echo "Failed to populate environment variables AWS_ACCESS_KEY, AWS_SECRET_KEY, and AWS_SESSION_TOKEN." | ||
echo "AWS_IAM is currently $AWS_IAM. Double-check that this is correct. If not, update AWS_IAM env in aws.sh" | ||
exit 1 | ||
fi | ||
|
||
fi | ||
|
||
export AWS_DEFAULT_REGION=us-west-2 | ||
|
||
eval "$restore_trace" |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright [2017 - 2020] Confluent Inc. | ||
# | ||
|
||
set -ex | ||
|
||
git config --global user.email "jenkins@confluent.io" | ||
git config --global user.name "Confluent Jenkins Bot" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright [2017 - 2020] Confluent Inc. | ||
# | ||
|
||
set -e | ||
|
||
if [[ -z $GIT_CREDENTIAL ]]; then | ||
echo "Please export GIT_CREDENTIAL to contain git username:password" | ||
exit 1 | ||
fi | ||
|
||
git config --global credential.helper store | ||
echo "https://$GIT_CREDENTIAL@github.com" > ~/.git-credentials |