Skip to content
Snippets Groups Projects
Unverified Commit 3a26459e authored by Jan Tattermusch's avatar Jan Tattermusch Committed by GitHub
Browse files

Merge pull request #18871 from jtattermusch/nuget_dev_upload

Upload C# nightly nugets to Artifactory dev nuget feed
parents 1d21ed3e ff397acf
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment