Jenkins - build cycle

Decision

When setting up branches for assembly, remove the wildcard *:

*/master will only master


This error only occurs when the GIT SCM is associated with the JOB.

Ex: I have daily work on creating an Android project. At first I thought it was a cron problem, currently I use 50 10 * * * , but I tried H 10 * * * without any success. When the time comes, he always creates a task (Failure or Success), and he queues another job .. and so on ...

Last held out on Friday, May 22, 2015 10:01:58 BRT; will be working on Saturday, May 23, 2015 10:01:58 a.m. BRT.

Even an assembly with a parameter queues another task every time.

That way, it stays in the build cycle, forever ..


Configuration:

  • . 1,614.
  • Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-46-generic x86_64)
  • GIT : 1.17.1
  • GIT : 2.3.5

:

Started by an SCM change
Building in workspace .../jobs/PROJECT_NAME/workspace
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url ssh://GIT_ADDRESS/ # timeout=10
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
Fetching upstream changes from ssh://GIT_ADDRESS/
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress ssh://GIT_ADDRESS/ +refs/heads/master:refs/remotes/origin/master
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Multiple candidate revisions
Scheduling another build to catch up with PROJECT_NAME
Checking out Revision e6d726c2d31cb0d7e6fad4362ee85e6fac1712c6 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f e6d726c2d31cb0d7e6fad4362ee85e6fac1712c6
 > git rev-list e6d726c2d31cb0d7e6fad4362ee85e6fac1712c6 # timeout=10
[Gradle] - Launching build.
[android] $ gradle clean build assemble
...

, ?

 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Multiple candidate revisions
Scheduling another build to catch up with PROJECT_NAME

:

the build loop


:

Job config


:

Global config


+4
3

, , , .

, , 09:46:05 Started by an SCM change 16:06:58 Started by user Slav. .

Edit:
, , SCM, , - SCM script, Jenkins.

- , SCM , , . /pollingLog/ URL- , " SCM". , , , .

, , IP- / . "" , , .

2:
, git , ​​ 1.6. 2. git.
: https://issues.jenkins-ci.org/browse/JENKINS-10767 https://issues.jenkins-ci.org/browse/JENKINS-20286

+1

, , - .

( )?

0

Please give the code below in the Build Frequency section and try to solve this problem.

H(0-50) 10 * * *
0
source

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


All Articles