jenkins: criu-lib: add BUILD_NUMBER to the archive filename

Submitted by Mike Rapoport on Sept. 13, 2017, 5:36 p.m.

Details

Message ID 1505324202-1766-2-git-send-email-rppt@linux.vnet.ibm.com
State Accepted
Series "jenkins: criu-lib: kill trailing whitespace"
Commit 3ad07482dbf0e7c8ecbf411719b5a60b39873bd3
Headers show

Commit Message

Mike Rapoport Sept. 13, 2017, 5:36 p.m.
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
---
 test/jenkins/criu-lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/test/jenkins/criu-lib.sh b/test/jenkins/criu-lib.sh
index 7826337..4b296a2 100644
--- a/test/jenkins/criu-lib.sh
+++ b/test/jenkins/criu-lib.sh
@@ -36,7 +36,7 @@  function fail()
 	uname -a
 	ps axf > ps.log
 	cat /sys/kernel/debug/tracing/trace > trace.log
-	tar -czf /home/`basename $0`-${GIT_COMMIT}-$(date +%m%d%H%M).tar.gz .
+	tar -czf /home/`basename $0`-${BUILD_NUMBER}-${GIT_COMMIT}-$(date +%m%d%H%M).tar.gz .
 	tar -czf report.tar.gz -C test/ report
 	exit 1
 }

Comments

Andrei Vagin Sept. 30, 2017, 1:09 a.m.
Applied, thanks
On Wed, Sep 13, 2017 at 10:36:42AM -0700, Mike Rapoport wrote:
> Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
> ---
>  test/jenkins/criu-lib.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/jenkins/criu-lib.sh b/test/jenkins/criu-lib.sh
> index 7826337..4b296a2 100644
> --- a/test/jenkins/criu-lib.sh
> +++ b/test/jenkins/criu-lib.sh
> @@ -36,7 +36,7 @@ function fail()
>  	uname -a
>  	ps axf > ps.log
>  	cat /sys/kernel/debug/tracing/trace > trace.log
> -	tar -czf /home/`basename $0`-${GIT_COMMIT}-$(date +%m%d%H%M).tar.gz .
> +	tar -czf /home/`basename $0`-${BUILD_NUMBER}-${GIT_COMMIT}-$(date +%m%d%H%M).tar.gz .
>  	tar -czf report.tar.gz -C test/ report
>  	exit 1
>  }
> -- 
> 2.7.4
>