Skip to content

Commit

Permalink
remove login to nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-akolodziejczyk committed Feb 16, 2024
1 parent a0cad0a commit 8f1c0b5
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 27 deletions.
4 changes: 0 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ timestamps {
}

stage('Build') {
withCredentials([
usernamePassword(credentialsId: '063fc85b-62a6-4181-9d72-873b43488411', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY'),
string(credentialsId: 'a791118f-a1ea-46cd-b876-56da1b9bc71c',variable: 'NEXUS_PASSWORD')
]) {
sh '''\
|#!/bin/bash -e
|export GIT_BRANCH=${GIT_BRANCH}
Expand Down
2 changes: 1 addition & 1 deletion ci/_init.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e

export PLATFORM=$(echo $(uname) | tr '[:upper:]' '[:lower:]')
export INTERNAL_REPO=nexus.int.snowflakecomputing.com:8086
export INTERNAL_REPO=nexus.int.snowflakecomputing.com:8087
if [[ -z "$GITHUB_ACTIONS" ]]; then
# Use the internal Docker Registry
export DOCKER_REGISTRY_NAME=$INTERNAL_REPO/docker
Expand Down
1 change: 0 additions & 1 deletion ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
set -o pipefail
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $THIS_DIR/_init.sh
source $THIS_DIR/scripts/login_internal_docker.sh

if [[ -z "$GITHUB_ACTIONS" ]]; then
export GIT_URL=${GIT_URL:-https://github.com/snowflakedb/snowflake-connector-net.git}
Expand Down
2 changes: 0 additions & 2 deletions ci/image/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ set -o pipefail
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $THIS_DIR/../_init.sh

source $THIS_DIR/../scripts/login_internal_docker.sh

for image in $(docker images --format "{{.ID}},{{.Repository}}:{{.Tag}}" | grep "nexus.int.snowflakecomputing.com" | grep "client-$DRIVER_NAME"); do
target_id=$(echo $image | awk -F, '{print $1}')
target_name=$(echo $image | awk -F, '{print $2}')
Expand Down
18 changes: 0 additions & 18 deletions ci/scripts/login_internal_docker.sh

This file was deleted.

1 change: 0 additions & 1 deletion ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ ROOT_DIR="$(cd "${THIS_DIR}/.." && pwd)"
export WORKSPACE=${WORKSPACE:-/tmp}

source $THIS_DIR/_init.sh
source $THIS_DIR/scripts/login_internal_docker.sh

echo "Use /sbin/ip"
IP_ADDR=$(/sbin/ip -4 addr show scope global dev eth0 | grep inet | awk '{print $2}' | cut -d / -f 1)
Expand Down

0 comments on commit 8f1c0b5

Please sign in to comment.