Hi,

I have three platforms I want to build on.. XCode, Win32 and Win64.

So I want to execute these in parallel, no problem, use the "parallel" 
build step with three nodes

The problem is that the Win32 and Win64 builds could well end up happening 
on the same slave (in fact to start wih they most definately will because I 
only have the one windows build machine.)

If the two builds are happening on the same slave, there are certain things 
I really don't want happening twice, not only because it's a waste of time, 
but because it could make a mess of things. For example the code is checked 
out of the repository, and then a patch applied, that would be an issue if 
the other node was busy compiling the code and it suddenly got reverted 
back to pre-patched state.

So what I would like to be able to do is something like (with 
current_build_signature being a UUID)

lock (slave_local_resource) {
    workspace_build_signature = File("workspace_build_signaiure").read()
    if (workspace_build_signature != current_build_signature)
    {
        checkoutCodeAndPatch()
        file("workspace_build_signature").write(current_build_signature)
    }
}

Is there a way to do something like this, or can someone suggest an 
alternative?

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f5e4d7f6-87df-41a4-9e4e-4904863aeecc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to