diff --git a/Jenkinsfile b/Jenkinsfile index 63e610abc..955f033a9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -57,13 +57,15 @@ pipeline { } steps { script { - if(isUnix()) { - sh './build.sh' - sh './build.sh test' - // If the tests are passing for Linux AMD64, then we can build all the CPU architectures - sh 'docker buildx bake --file docker-bake.hcl linux' - } else { - powershell '& ./build.ps1 test' + infra.withDockerCredentials { + if(isUnix()) { + sh './build.sh' + sh './build.sh test' + // If the tests are passing for Linux AMD64, then we can build all the CPU architectures + sh 'docker buildx bake --file docker-bake.hcl linux' + } else { + powershell '& ./build.ps1 test' + } } } }