[
https://issues.jenkins-ci.org/browse/JENKINS-7436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160779#comment-160779
]
Richard Taylor commented on JENKINS-7436:
-----------------------------------------
Hi. We've had a solution like this in mind for a while now. I've got a few
questions.
p4 revert -k ${sourceCodePath}
When the next builds starts how do you ensure that the workspace does not
contain any modified files? Even if the -k flag was not specified any files
which where 'added' in the change list would still be left on the disc (and
this would cause a problem for our build system). Our planned approach is to
write a script which does the unshelve and also writes out a cleanup script
which handles the adds and other cases not covered by p4 revert. Is there a
simplere approach.
Many thanks
Rich
> Add support for perforce shelve builds
> --------------------------------------
>
> Key: JENKINS-7436
> URL: https://issues.jenkins-ci.org/browse/JENKINS-7436
> Project: Jenkins
> Issue Type: New Feature
> Components: perforce
> Reporter: vbuzzsaw
>
> It would be really useful if the perforce plugin could add support for
> shelving -- Functionality added perforce in version 2009.2.
> Here is a good blog writeup --http://blog.perforce.com/blog/?p=1872
> Many things hudson is great for is finding out if anyone "broke" the build by
> polling source repositories looking for commits and kicking off builds. But
> breaking builds and backing code is a pain sometimes. It would be even
> better if you could run a build in hudson BEFORE checking in your changelist
> to see if your changelist WOULD break the build and fix problems before they
> occur. That is exactly what perforce shelving does -- It allows you to
> shelve your changelist -- saving all your modifications to the server
> (without committing them), and then allowing others to pull down the shelved
> modified code and perform a build.
> I'm not sure if the underlying tek42 perforce client library you use supports
> shelving, but if so this would be really useful functionality.
> Thanks.
> Doug
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira