Re: publish over ssh: send only commit scripts

2015-12-18 Thread Baptiste Mathus
Try with *cp $(git diff-tree --no-commit-id --name-only --diff-filter=ACMRTU -r HEAD) transitdir* See also $ git help diff-tree 2015-12-18 16:02 GMT+01:00 Ismaila Baradji : > Hi, thanks very much, this help me a lot, > but it works only if there are no delete files between the commit files. > th

Re: publish over ssh: send only commit scripts

2015-12-18 Thread Ismaila Baradji
Hi, thanks very much, this help me a lot, but it works only if there are no delete files between the commit files. this is my jenkins log rm -rf target_dir + mkdir target_dir + git diff-tree --no-commit-id --name-only -r HEAD + cp -r --parents puro/error_log puro/tmp/test/tes2/testfile.php target_

Re: publish over ssh: send only commit scripts

2015-12-17 Thread Baptiste Mathus
How about something like: *rm -rf transitdir* *mkdir transitdir* *cp $(git diff-tree --no-commit-id --name-only -r HEAD) transitdir* Then configure publish over ssh to copy every files of that "transitdir" directory. Does that help? 2015-12-17 20:09 GMT+01:00 Ismaila Baradji : > hi Batmat, >

Re: publish over ssh: send only commit scripts

2015-12-17 Thread Ismaila Baradji
hi Batmat, thanks for your help. I create a shell execute commande and add: $ git diff-tree --no-commit-id --name-only -r GIT_COMMIT but how to copy theses files and how to put in the publish over ssh parameters such as Source files, Remove prefix ? I read the documentation https://wiki.jenkins

Re: publish over ssh: send only commit scripts

2015-12-17 Thread Baptiste Mathus
Hi, What is "commit files"? Do you mean something like "the files that were touched by the last commit" ? If so, then it should be pretty easy to introduce a shell step for example that would call something along $ git diff-tree --no-commit-id --name-only -r bd61ad98

publish over ssh: send only commit scripts

2015-12-16 Thread Ismaila Baradji
Hi, I am trying to configure my job to send only commit files. I have tryed with run ssh and after publish over ssh but no one is not working. any idea? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop r