[JIRA] (JENKINS-46582) stash / unstash pipeline step is not preserving files timestamp

2019-09-02 Thread spen...@sima.ai (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Spenser Gilliland commented on  JENKINS-46582  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: stash / unstash pipeline step is not preserving files timestamp   
 

  
 
 
 
 

 
 Here's a workaround to get good timestamps back and forth.  The --keep-newer-files option is very useful if you need to overwrite your workspace.   

 

def stash_ws() {
  sh """#!/bin/bash -ex
tar -c --keep-newer-files -f ws.tar --exclude ws.tar --exclude-vcs .
"""
  stash name: 'mystash', includes: 'ws.tar'
}

def unstash_ws() {
  unstash name: 'mystash'
  sh """#!/bin/bash -ex
tar -x --keep-newer-files -f ws.tar
"""
}
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.184906.1504242686000.5158.1567470960159%40Atlassian.JIRA.


[JIRA] (JENKINS-46582) stash / unstash pipeline step is not preserving files timestamp

2019-06-10 Thread spen...@sima.ai (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Spenser Gilliland commented on  JENKINS-46582  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: stash / unstash pipeline step is not preserving files timestamp   
 

  
 
 
 
 

 
 Hi, just wanted to say that I'm seeing the same issue.  Please let me know of any workaround for this.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.184906.1504242686000.24684.1560201300102%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-46582) stash / unstash pipeline step is not preserving files timestamp

2018-11-16 Thread vivek.pan...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vivek Pandey updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-46582  
 
 
  stash / unstash pipeline step is not preserving files timestamp   
 

  
 
 
 
 

 
Change By: 
 Vivek Pandey  
 
 
Labels: 
 stash timestamp  triaged-2018-11  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.