Just a basic setup:
depot/project/dev/src
depot/project/int/src

I have a continuous build running on the "dev" structure every few minutes. 
I have a nightly build that runs on the "int" structure. When you ask "why 
don't you want to merge?", are you asking from a manual perspective? 

I would like my "dev" build to run. When the "int" build runs, I would like 
it to check if there were any changes on the "dev" branch/directory and 
move them over. Then build what's there.

I have used some of the commands in a "Execute Windows batch command" build 
step, but thought that the "Source Code Management" plugin would be where I 
would want to do that.

In the window I used the following commands:
"C:\Program Files\Perforce\"p4 -u build-user -P xxx change -o
"C:\Program Files\Perforce\"p4 -u build-user -P xxx integrate -i -d -t 
//project/dev... //JenkinsJob/workspace/int...
"C:\Program Files\Perforce\"p4 -u build-user -P xxx submit -f 
revertunchanged -d "Integration Build"

On the integrate I get: - all revision(s) already integrated.
On the integrate I get: No files to submit from the default changelist.
and the "Execute Windows batch command" fails the build "Build step 
'Execute Windows batch command' marked build as failure. Even though there 
was a change list listed by Jenkins.

I'm all for changing my direction if there is a more standard/better way of 
implementing this.

Thoughts?



On Wednesday, May 7, 2014 2:58:51 AM UTC-5, Stuart Rowe wrote:
>
> Can you describe your branch structure a little more?
>
> How are your integration builds triggered? If you're trying to move 
> changes from your development branch to another branch why don't you want 
> to merge? 
>
> Conceptually I would approach this as:
>
> 1)  start an integration of your Dev branch up to some changelist to the 
> target branch
>
> (look up "p4 integrate")
>
>
> 2) now you have a pending integration changelist with the changes from 
> your Dev branch applied to your target branch. (assuming there were no 
> conflicts that couldn't be resolved).
>
> Run whatever builds/tests you have set up to verify the changes
>
> 3) a) if the builds and tests were successful, submit the changelist
>
> (look up "p4 submit")
>
> b) if anything failed, revert the changelist and make the appropriate 
> fixes in your Dev branch
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to