In my builder class I have a Integer field, which will increase by 1 in the perform method. I tested it, this field did increase after each build as expected. However, after jenkins reboot, this field returned to its initial value, because its value is not changed in the job's config.xml. I don't know how jenkins remembered this field's last state when running(maybe in memory?).
My question is how can I persist the change in the job's config.xml? So that I'll not lose the change even after jenkins reboot?
In my builder class I have a Integer field, which will increase by 1 in the perform method. I tested it, this field did increase after each build as expected. However, after jenkins reboot, this field returned to its initial value, because its value is not changed in the job's config.xml. I don't know how jenkins remembered this field's last state when running(maybe in memory?).
My question is how can I persist the change in the job's config.xml? So that I'll not lose the change even after jenkins reboot?
--
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 jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/12fc6bba-7d43-467c-8b53-5195badecda5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2017-12-01 4:31 GMT+01:00 司芳源 <sify...@gmail.com>:
In my builder class I have a Integer field, which will increase by 1 in the perform method. I tested it, this field did increase after each build as expected. However, after jenkins reboot, this field returned to its initial value, because its value is not changed in the job's config.xml. I don't know how jenkins remembered this field's last state when running(maybe in memory?).
My question is how can I persist the change in the job's config.xml? So that I'll not lose the change even after jenkins reboot?
--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/12fc6bba-7d43-467c-8b53-5195badecda5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/72ff46df-ba8d-405d-a9d5-f240ec85e6ef%40googlegroups.com.