Merge pull request #18871 from jtattermusch/nuget_dev_upload

Upload C# nightly nugets to Artifactory dev nuget feed
pull/18876/head
Jan Tattermusch 6 years ago committed by GitHub
commit 3a26459edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/internal_ci/linux/grpc_publish_packages.cfg
  2. 13
      tools/internal_ci/linux/grpc_publish_packages.sh

@ -24,3 +24,5 @@ action {
regex: "github/grpc/artifacts/**"
}
}
gfile_resources: "/bigstore/grpc-testing-secrets/nuget_credentials/artifactory_grpc_nuget_dev_api_key"

@ -233,3 +233,16 @@ gsutil -m cp -r "$LOCAL_STAGING_TEMPDIR/${BUILD_RELPATH%%/*}" "$GCS_ARCHIVE_ROOT
)
# Upload the new /index.xml
gsutil -h "Content-Type:application/xml" cp "$NEW_INDEX" "$GCS_INDEX"
# Upload C# nugets to the dev nuget feed
pushd "$UNZIPPED_CSHARP_PACKAGES"
docker pull mcr.microsoft.com/dotnet/core/sdk:2.1
for nugetfile in *.nupkg
do
echo "Going to push $nugetfile"
# use nuget from a docker container to push the nupkg
set +x # IMPORTANT: avoid revealing the nuget api key by the command echo
docker run -v "$(pwd):/nugets:ro" --rm=true mcr.microsoft.com/dotnet/core/sdk:2.1 bash -c "dotnet nuget push /nugets/$nugetfile -k $(cat ${KOKORO_GFILE_DIR}/artifactory_grpc_nuget_dev_api_key) --source https://grpc.jfrog.io/grpc/api/nuget/v3/grpc-nuget-dev"
set -ex
done
popd

Loading…
Cancel
Save