We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rake can be scheduled on the wrong machine.
To reproduce:
echo 'task(:default) { puts
; sleep 8 }' > Rakefile
Started by user Rohan McGovern Started by user Rohan McGovern [EnvInject] - Loading node environment variables. Building remotely on rmcgover-ws-02 (docker) in workspace /home/jenkins/workspace/rake test [rake test] $ /bin/sh -xe /tmp/hudson1005075034362718171.sh + echo 'task(:default) { puts `hostname`; sleep 8 }' [rake test] $ /usr/bin/rake dd8166383c1d [rake test] $ /usr/bin/rake dd8166383c1d [rake test] $ /usr/bin/rake 5ea60c3d5e02 [rake test] $ /usr/bin/rake 5ea60c3d5e02 [rake test] $ /usr/bin/rake 5ea60c3d5e02 [rake test] $ /usr/bin/rake 5ea60c3d5e02 Finished: SUCCESS
I'm not too familiar with Jenkins' APIs, but to me, this code in Rake.java looks suspicious:
private Launcher getLastBuiltLauncher(AbstractBuild build, Launcher launcher, BuildListener listener) { AbstractProject project = build.getProject(); Node lastBuiltOn = project.getLastBuiltOn(); Launcher lastBuiltLauncher = launcher; if (lastBuiltOn != null) { lastBuiltLauncher = lastBuiltOn.createLauncher(listener); } return lastBuiltLauncher; }
... since the value of project.getLastBuiltOn() presumably can change during a build.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Rake can be scheduled on the wrong machine.
To reproduce:
echo 'task(:default) { puts
hostname; sleep 8 }' > Rakefile
I'm not too familiar with Jenkins' APIs, but to me, this code in Rake.java looks suspicious:
... since the value of project.getLastBuiltOn() presumably can change during a build.
The text was updated successfully, but these errors were encountered: