Skip to content

Commit

Permalink
build: Setting project version 0.10.0-rc322 and parent version 6.0.0-…
Browse files Browse the repository at this point in the history
…beta200522114954.
  • Loading branch information
ConfluentJenkins committed May 27, 2020
1 parent f23412e commit 3916348
Show file tree
Hide file tree
Showing 34 changed files with 206 additions and 28 deletions.
26 changes: 26 additions & 0 deletions .ci/get-vault-secret.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
#
# Copyright [2017 - 2020] Confluent Inc.
#

# Get a secret from Vault. You must already be logged in using the vault-login.sh script.
# You must provide the path to the secret and the secret key for which you want the value.
# The path to the secret is relative to v1/ci/kv
#
# Arguments:
# $1 The path to the secret relative to v1/ci/kv
# $2 The key in the secret you want the value for
#

set +x

SECRET=$1
KEY=$2
export VAULT_ADDR=https://vault.cireops.gcp.internal.confluent.cloud

if SECRET_VALUE=$(vault kv get -field "$KEY" v1/ci/kv/"$SECRET"); then
echo "$SECRET_VALUE"
else
echo "Failed to get secret and key: $SECRET, $KEY"
exit 1
fi
35 changes: 35 additions & 0 deletions .ci/vault-login.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
#
# Copyright [2017 - 2020] Confluent Inc.
#

# Login to Vault using the tools role ID and Secret ID.
#

export VAULT_ADDR=https://vault.cireops.gcp.internal.confluent.cloud

if [[ -z "$VAULT_ROLE_ID" ]]; then
echo "Error: The VAULT_ROLE_ID is not set."
exit 1
fi

if [[ -z "$VAULT_SECRET_ID" ]]; then
echo "Error: The VAULT_SECRET_ID is not set."
exit 1
fi

echo "Getting Vault token with tools Role ID and Secret ID"
VAULT_TOKEN=$(vault write -field=token auth/app/prod/login role_id="$VAULT_ROLE_ID" secret_id="$VAULT_SECRET_ID")

if [[ -z "$VAULT_TOKEN" ]]; then
echo "Failed to get Vault token."
exit 1
fi

echo "Logging into Vault with token."
if vault login "$VAULT_TOKEN" >/dev/null 2>&1; then
echo "Successfully logged into Vault."
else
echo "Failed to login to Vault."
exit 1
fi
22 changes: 22 additions & 0 deletions create-pip-conf-with-jfrog.sh
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 "${ARTIFACTORY_USERNAME}" || -z "${ARTIFACTORY_PASSWORD}" ]]; then
echo "Please export env ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD with Jfrog Artifactory 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://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_PASSWORD}@confluent.jfrog.io/confluent/api/pypi/pypi/simple" > ${PIP_CONF}
echo "Created ${PIP_CONF} with Jfrog Artifactory repository"
fi
29 changes: 29 additions & 0 deletions create-pypirc-with-jfrog.sh
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 $ARTIFACTORY_USERNAME || -z $ARTIFACTORY_PASSWORD ]]; then
echo "Please export env ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD with Jfrog Artifactory 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 =
jfrog
[jfrog]
repository: https://confluent.jfrog.io/confluent/api/pypi/pypi-internal
username: $ARTIFACTORY_USERNAME
password: $ARTIFACTORY_PASSWORD
" > $PYPIRC
echo "Created $PYPIRC with Jfrog Artifactory repository"
fi
43 changes: 43 additions & 0 deletions extract-iam-credential.sh
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"
2 changes: 1 addition & 1 deletion ksqldb-api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-api-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-api-reactive-streams-tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-api-reactive-streams-tck</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ questions.
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-benchmark</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-cli</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-console-scripts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<groupId>io.confluent.ksql</groupId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>ksqldb-parent</artifactId>
<groupId>io.confluent.ksql</groupId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-docker</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-engine</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-etc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<groupId>io.confluent.ksql</groupId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-execution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-execution</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-functional-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion ksqldb-metastore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-metastore</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-package</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-parser</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-rest-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-rest-app</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-rest-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-rest-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-rest-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-rest-model</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-rocksdb-config-setter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-rocksdb-config-setter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-serde/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-serde</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-streams/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-streams</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-test-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>ksqldb-parent</artifactId>
<groupId>io.confluent.ksql</groupId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion ksqldb-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-tools</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-udf-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-udf-quickstart</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-udf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-udf</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksqldb-version-metrics-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>io.confluent.ksql</groupId>
<artifactId>ksqldb-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.10.0-rc322</version>
</parent>

<artifactId>ksqldb-version-metrics-client</artifactId>
Expand Down
Loading

0 comments on commit 3916348

Please sign in to comment.