--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5ad68688-3825-4060-ab18-868726f739fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cc38bd2e-0ab4-4d32-9139-1c92d0d2e3de%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeshKoP3kQASSn1-jTjLZ5N5A2m86W2ie8Jb5k2TYV55Q%40mail.gmail.com.
An alternate way of handling this is to stop polling. Or rather, poll explicitly.
Have a job which runs every n minutes/hours and does the following:
1: Pull the latest version
2: Check it against a version file in the workspace (never clean the workspace)
3: If the latest version is the same as what’s in the version file, you succeeded.
4: If the latest version is different, or if there is no version file:
A: Use an API call or the Scriptler plugin or something to run a second job that does the actual build. Don’t wait for it to finish.
B: Put the new version into the version file
C: You succeeded.
The job described above can send email on every poll, and the job it calls can send email on every build.
--Rob
--
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-use...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/5ad68688-3825-4060-ab18-868726f739fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Click here to report this email as spam.