Removing build associated files on Linux from Windows Jenkins

20 views
Skip to first unread message

Ioannis Moutsatsos

unread,
Mar 14, 2016, 1:09:11 PM3/14/16
to Jenkins Users
I have a job that uploads user data on a Linux server where it gets processed (ssh remote execution build step). Results (artifacts) are subsequently downloaded and archived on the windows Jenkins server.

How can I delete the user data on the Linux server when  their associated Jenkins build is deleted?
Jenkins obviously deletes the archived artifacts, but I can't think of a good way to also trigger the cleanup of the remote data on Linux.

Any help would be greatly appreciated. thanks
Ioannis


Baptiste Mathus

unread,
Mar 18, 2016, 3:41:51 AM3/18/16
to jenkins...@googlegroups.com

Must be missing something. Why can't you just:
* upload files
* process them
* download resulting files
* clean up everything

In the same go?

Cheers

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f4dc57e6-6045-4d92-b35c-ecb3ec0a5615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ioannis Moutsatsos

unread,
Mar 18, 2016, 6:41:47 AM3/18/16
to Jenkins Users, m...@batmat.net
Good question! If we were using the intermediate files (on Linux) just for that build, we could certainly do what you are suggesting.
In our use patterns the intermediate results can be reused by several downstream jobs. As a result we don't want to delete them at the end of the first build that uses them.

Thank you for the feedback!
Reply all
Reply to author
Forward
0 new messages