Ensure that no lingering .netrc is overriding cfg 20/14020/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 20 Dec 2018 12:26:55 +0000 (07:26 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 20 Dec 2018 12:26:58 +0000 (07:26 -0500)
If a .netrc already exists with permissions to the same server
as logs, credentials in .netrc are read in order so the log
credentials will not be used. Ensure that no such file pre-exists
before we try to ship logs.

Change-Id: I0449702fd27837208e25a26e34a62f0b8a551c67
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/lf-macros.yaml

index 206e717..08bb637 100644 (file)
@@ -56,6 +56,8 @@
 - builder:
     name: lf-infra-ship-logs
     builders:
+      # Ensure no pre-existing .netrc files are overriding logs config
+      - lf-provide-maven-settings-cleanup
       - config-file-provider:
           files:
             - file-id: 'jenkins-log-archives-settings'