Skip to content
New issue

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

[JENKINS-45892] IllegalStateException at hudson.XmlFile.replaceIfNotA… #257

Merged
merged 9 commits into from
Dec 1, 2017

Conversation

carlossg
Copy link
Contributor

@carlossg carlossg commented Nov 30, 2017

…tTopLevel

JENKINS-45892 introduced a change that is causing

Nov 29, 2017 6:58:52 PM hudson.XmlFile replaceIfNotAtTopLevel
WARNING: JENKINS-45892: reference to org.jenkinsci.plugins.workflow.job.WorkflowJob@488f6bf6[cloudbees/test/branch] being saved from unexpected /var/jenkins_home/jobs/test/branches/branch.njvm0k/builds/7/build.xml
java.lang.IllegalStateException
        at hudson.XmlFile.replaceIfNotAtTopLevel(XmlFile.java:210)

…tTopLevel

JENKINS-45892 introduced a change that is causing

Nov 29, 2017 6:58:52 PM hudson.XmlFile replaceIfNotAtTopLevel
WARNING: JENKINS-45892: reference to org.jenkinsci.plugins.workflow.job.WorkflowJob@488f6bf6[cloudbees/test/branch] being saved from unexpected /var/jenkins_home/jobs/test/branches/branch.njvm0k/builds/7/build.xml
java.lang.IllegalStateException
        at hudson.XmlFile.replaceIfNotAtTopLevel(XmlFile.java:210)
@carlossg
Copy link
Contributor Author

carlossg commented Nov 30, 2017

@reviewbybees @jglick


private transient Run<?, ?> run;

public AbstractInvisibleRunAction2(Run<?, ?> run) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand RunAction2, this is not necessary, as onAttached(Run) will be called as soon as it is attached to a Run instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to make things simpler and more object oriented
Leave deprecated methods as they were
Copy link
Member

@Vlatombe Vlatombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@carlossg
Copy link
Contributor Author

carlossg commented Dec 1, 2017

@reviewbybees done

@carlossg carlossg merged commit ea8fd31 into master Dec 1, 2017
@carlossg carlossg deleted the JENKINS-45892 branch December 1, 2017 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants