Accessing the checked out sources when using GitHub Organization Folder plugin

18 views
Skip to first unread message

Ullrich Hafner

unread,
Nov 3, 2016, 10:14:55 AM11/3/16
to jenkins...@googlegroups.com
When using the GitHub Organization Folder plug-in Jenkins checks out automatically the sources of my project. However, in the corresponding Jenkinsfile these sources are not visible, they are stored in a different workspace with suffix @script.

My Jenkinsfile currently is just a simple maven command:
node {
def mvnHome = tool 'mvn-default'

sh "${mvnHome}/bin/mvn verify“
}

How do I access the checked out sources? Or do I add a stage that uses git checkout?


Vincent Latombe

unread,
Nov 3, 2016, 1:02:38 PM11/3/16
to Jenkins Users
You can just use "checkout scm" where you need them.

Vincent



--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/C4B30CE4-2C14-4DA9-A567-0D26BE117F50%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages