Skip to content

Commit

Permalink
build: Setting project version 0.7.0 and parent version 5.5.0-beta200…
Browse files Browse the repository at this point in the history
…204173843.
  • Loading branch information
ConfluentJenkins committed Feb 12, 2020
1 parent d9aabf3 commit 57ad1ae
Show file tree
Hide file tree
Showing 31 changed files with 144 additions and 27 deletions.
22 changes: 22 additions & 0 deletions create-pip-conf-with-nexus.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 $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
29 changes: 29 additions & 0 deletions create-pypirc-with-nexus.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 $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
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 ksql-api/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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-benchmark</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-cli</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

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

<artifactId>ksql-docker</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-engine</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<groupId>io.confluent.ksql</groupId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-execution</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-metastore</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-package</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-parser</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-rest-app</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-rest-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-rest-model</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-rocksdb-config-setter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-serde</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

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

Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-tools</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-udf-quickstart</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-udf</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ksql-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>ksql-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
</parent>

<artifactId>ksql-version-metrics-client</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
<parent>
<groupId>io.confluent</groupId>
<artifactId>rest-utils-parent</artifactId>
<version>6.0.0-SNAPSHOT</version>
<version>5.5.0-beta200204173843</version>
</parent>

<groupId>io.confluent.ksql</groupId>
<artifactId>ksql-parent</artifactId>
<packaging>pom</packaging>
<name>ksql-parent</name>
<version>6.0.0-SNAPSHOT</version>
<version>0.7.0</version>
<licenses>
<license>
<name>Confluent Community License</name>
Expand Down
9 changes: 9 additions & 0 deletions set-global-user.sh
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"
14 changes: 14 additions & 0 deletions setup-credential-store.sh
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

0 comments on commit 57ad1ae

Please sign in to comment.