[Xen-devel] [PATCH] gitlab-ci: avoid deleting build-each-commit-gcc.log

Wei Liu posted 1 patch 2 weeks ago
Failed in applying to current master (apply log)
automation/gitlab-ci/test.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

[Xen-devel] [PATCH] gitlab-ci: avoid deleting build-each-commit-gcc.log

Posted by Wei Liu 2 weeks ago
072a96c4901 used `git clean -ffdx` which caused the log to be deleted.

Generate the log in the parent directory then move it back.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 automation/gitlab-ci/test.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index d4556afe11..7ba20a51da 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -7,7 +7,8 @@ build-each-commit-gcc:
     XEN_TARGET_ARCH: x86_64
     CC: gcc
   script:
-    - ./automation/gitlab-ci/build-each-commit.sh 2>&1 | tee build-each-commit-gcc.log
+    - ./automation/gitlab-ci/build-each-commit.sh 2>&1 | tee ../build-each-commit-gcc.log
+    - mv ../build-each-commit-gcc.log .
   artifacts:
     paths:
       - '*.log'
-- 
2.20.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] gitlab-ci: avoid deleting build-each-commit-gcc.log

Posted by Doug Goldstein 1 week ago
On Tue, May 07, 2019 at 05:11:01PM +0100, Wei Liu wrote:
> 072a96c4901 used `git clean -ffdx` which caused the log to be deleted.
> 
> Generate the log in the parent directory then move it back.
> 
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Acked-by: Doug Goldstein <cardoe@cardoe.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel