How can I manually start pull from Mercurial in Jenkins / Hudson?

I created a job in Jenkins that polls my Mercurial repository using the Mercurial Plugin . This works well when I click on the repository. I can run the assembly manually, but I cannot run hg pull / update, which happens as part of the survey, which means that I need to wait up to 60 seconds for the assembly to start with my new changes. Sometimes I push changes that I know will affect and possibly disrupt the build of the system and get faster feedback. What is the best way to pull / upgrade to manual build?

+4
source share
3 answers

I seem to be wrong. I must have missed something in the log when I initially tested it, or maybe I hit the assembly link manually before the push went to the server. Jenkins seems to be doing hg incoming , then hg unbundle , then hg update at the beginning of each build, even when the build starts manually, which is exactly what I wanted.

0
source

Is your quiet period set? You can change this to 0 to invoke the assembly immediately (http://jenkins-ci.org/content/quiet-period-feature)

In addition, you can have two tasks: one of them you have right now, and the second - only for changes. Poller can initiate your current job when it sees changes (Build after project).

0
source

I would suggest if you are having problems updating / pulling with hg. what you can do is use the execute shell to update your assembly, since you invoke your assembly manually. Then you can periodically create a task; so this will make your aspiration happen no matter what you set for your building period. You do not have to worry about polling your SCM.

0
source

Source: https://habr.com/ru/post/1347467/


All Articles