Re: [workflow-plugin] Exposing RunWrapper.getLog() methods for workflow build step (or alternate way to retrieve build-step logs)

2015-06-11 Thread Vizionz
> > You can get the jobs BUILD_NUMBER value through the getNumber() method. > With that you may access the plain log via > /job///consoleText > URL. > > > > Regards > > Eric > This definitely works! I was hoping that there would be a way to access the logs without hitting a URL. Many Th

[workflow-plugin] Exposing RunWrapper.getLog() methods for workflow build step (or alternate way to retrieve build-step logs)

2015-06-10 Thread Vizionz
d, I check the results for a failure. Is there way to access the job's logs? I see that the RunWrapper does not expose any api to retrieve Run.getLogFile(). Many Thanks! -Vizionz // Allocate Node // node("MyNode") { // Set Directory // dir("PathToDirectory

[workflow-plugin] What is the best way to add '--recursive' to 'git' statements

2015-04-21 Thread Vizionz
Hello, Is it possible to add '--recursive' parameter to the workflow git statement? git branch: "${GitBranch}", changelog: true, poll: false, url: "${GitRepo}" This statement does not pull submodules when executed. High Regards, Jc -- You received this message because you are subscribed to

Re: [workflow-plugin] How to assign output of a sh([script:""])

2015-03-06 Thread Vizionz
Two minutes after posting... https://issues.jenkins-ci.org/browse/JENKINS-26133 Looks as though there is no easy way to return output/status from a shell script instance. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from th

[workflow-plugin] How to assign output of a sh([script:""])

2015-03-06 Thread Vizionz
ory/to/git/REPO") { GitCommitCountValue=sh([script: "git rev-list HEAD --count"]) print "Git Commit Count = ${GitCommitCountValue}" } } *Output:* [REPO] Running shell script > + git rev-list HEAD --count > 99 > Running: Print Message > GIT COMMIT COUNT = 0 Thank you in adv