diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 17b4b7ce..1605901f 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -47,4 +47,4 @@ jobs: with: name: Pilot_${{ matrix.branch }} path: tmp_dir - retention-days: 1 + retention-days: 3 diff --git a/Pilot/pilotCommands.py b/Pilot/pilotCommands.py index b6d9cef3..e0ef9db4 100644 --- a/Pilot/pilotCommands.py +++ b/Pilot/pilotCommands.py @@ -203,6 +203,7 @@ def _sourceEnvironmentFile(self): if retCode: self.log.error("Could not parse the %s file [ERROR %d]" % (self.pp.installEnv["DIRAC_RC_PATH"], retCode)) self.exitWithError(retCode) + self.pp.installEnv = {} for line in output.split("\n"): try: var, value = [vx.strip() for vx in line.split("=", 1)]