Hello,

I am trying to add Workflow support to the repo-plugin.
So far this is going well, but I have an issue with the workspace: when the 
checkout() method is called, the workspace directory does not actually 
exist, so the following workflow does not work:

node {
   checkout([$class: 'RepoScm', 
manifestRepositoryUrl:https://android.googlesource.com/platform/manifest])
}

If I add a simple shell step first (e.g. sh("echo")), things are working 
fine. The Git plugin seems to have no problem either.

I tried to lookup the API and the Git plugin, but could not find anything 
related to the workspace creation.
In case of Git plugin, it may actually work as a side effect of the call to 
"git init <workspace>".

I tried manually creating of the workspace directory if it does not exist, 
which works fine; but it seems somewhat weird to me, is this really the way 
to go?

Best regards,

-- 
Francois

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/83ced67e-a0ed-405a-b25b-aa7aff75b83f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to