diff --git a/Dockerfile.redhat b/Dockerfile.redhat index 688069e2e6..6f494632a7 100644 --- a/Dockerfile.redhat +++ b/Dockerfile.redhat @@ -48,6 +48,9 @@ RUN echo -e "max_parallel_downloads=8\nretries=50" >> /etc/dnf/dnf.conf && \ wget && \ dnf clean all +## WA for authentication issues with git over HTTP/2 +RUN git config --global http.version HTTP/1.1 + ####### Azure SDK (modern azure-sdk-for-cpp: azure-core, azure-storage-blobs, azure-storage-files-shares) ARG SDL_OPS="-Wl,-z,relro,-z,now,-z,noexecstack -Wall -Wextra -Wimplicit-fallthrough -fPIE -pie -fstack-protector-strong -fexceptions -fasynchronous-unwind-tables -fcf-protection -fpic -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -Wall -Wno-unknown-pragmas -Wno-error=sign-compare -fno-delete-null-pointer-checks -fwrapv -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security -s -D_GLIBCXX_USE_CXX11_ABI=1 -Wuninitialized" WORKDIR /azure-sdk-for-cpp diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu index c95124f997..45b5b386dc 100644 --- a/Dockerfile.ubuntu +++ b/Dockerfile.ubuntu @@ -50,6 +50,9 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ WORKDIR / +## WA for authentication issues with git over HTTP/2 +RUN git config --global http.version HTTP/1.1 + ####### Azure SDK (modern azure-sdk-for-cpp: azure-core, azure-storage-blobs, azure-storage-files-shares) ARG SDL_OPS="-Wl,-z,relro,-z,now,-z,noexecstack -Wall -Wextra -Wimplicit-fallthrough -fPIE -pie -fstack-protector-strong -fexceptions -fasynchronous-unwind-tables -fcf-protection -fpic -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -Wall -Wno-unknown-pragmas -Wno-error=sign-compare -fno-delete-null-pointer-checks -fwrapv -fstack-clash-protection -Wformat -Wformat-security -Werror=format-security -s -D_GLIBCXX_USE_CXX11_ABI=1 -Wuninitialized" WORKDIR /azure-sdk-for-cpp diff --git a/ci/build_test_OnCommit.groovy b/ci/build_test_OnCommit.groovy index 5573d55ce6..1952349275 100644 --- a/ci/build_test_OnCommit.groovy +++ b/ci/build_test_OnCommit.groovy @@ -43,6 +43,11 @@ pipeline { } stages { stage('Configure') { + environment { + GIT_CONFIG_COUNT = '1' + GIT_CONFIG_KEY_0 = 'http.version' + GIT_CONFIG_VALUE_0 = 'HTTP/1.1' + } steps { script{ println "BUILD CAUSE ONCOMMIT: ${currentBuild.getBuildCauses()}"