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: git tag sometimes fails #3009

Closed
sanssecours opened this issue Sep 26, 2019 · 24 comments
Closed

Jenkins: git tag sometimes fails #3009

sanssecours opened this issue Sep 26, 2019 · 24 comments

Comments

@sanssecours
Copy link
Member

sanssecours commented Sep 26, 2019

Description

Seems like the Jenkins build now fails every time when its time to build Debian packages. According to the build server the command

git tag -a -f -m Jenkins Build #1007 jenkins-master-1007 # timeout=10

does not work, printing the error message:

Could not apply tag jenkins-master-1007

. This failure happened at least in build 1005 up until build 1009 of the master branch. The last time the Debian packages were built successfully was build 983. The last overall successful Jenkins build was build 982 😭.

@markus2330
Copy link
Contributor

Thank you for reporting the problem!

@Mistreated any progress on Debian packaging?

Alternatively, I think it is best to disable Debian Buster packages until @Mistreated has progress.

@sanssecours
Copy link
Member Author

@Mistreated any progress on Debian packaging?

I met Djordje yesterday. As far as I know generating packages for Ubuntu Bionic should work now.

@sanssecours
Copy link
Member Author

I think the problem lies somewhere in the following code for the Pipeline SCM Step Plugin:

checkout scm: [
$class: 'GitSCM',
branches: scm.branches,
extensions: scm.extensions + [
[$class: 'PerBuildTag'],
[$class: 'RelativeTargetDirectory',
relativeTargetDir: targetDir]
],
userRemoteConfigs: scm.userRemoteConfigs
]

. Here is some documentation for the plugin.

@markus2330
Copy link
Contributor

@ingwinlu do you have an idea?

@markus2330
Copy link
Contributor

@Mistreated can you reenable the buster packages together with the Ubuntu packages?

@sanssecours
Copy link
Member Author

Seems like commit 883e0e7 did not fix this problem.

@sanssecours sanssecours reopened this Sep 29, 2019
markus2330 pushed a commit that referenced this issue Sep 29, 2019
@markus2330
Copy link
Contributor

Master builds now: https://github.com/ElektraInitiative/libelektra/commits/master#

Did you see the problem also somewhere else or can this be closed now?

@sanssecours
Copy link
Member Author

@markus2330
Copy link
Contributor

Why are the git config commands missing there? 794cfdf

@sanssecours
Copy link
Member Author

Why are the git config commands missing there? 794cfdf

As far as I know that is the case, because the build step fails before these commands are executed (see also #3009 (comment))

@sanssecours
Copy link
Member Author

Build 1040 and Build 1041 also failed, because of this issue.

@markus2330
Copy link
Contributor

Is there something wrong in the Jenkins configuration? Seems like some module of Jenkins already does this git tag.

@markus2330 markus2330 reopened this Oct 3, 2019
@markus2330 markus2330 changed the title Jenkins: Building Debian Packages Fails Jenkins: git tag sometimes fails Oct 5, 2019
@markus2330 markus2330 removed the urgent label Nov 15, 2019
@markus2330
Copy link
Contributor

It still happens but not so often anymore. I removed "urgent".

@markus2330 markus2330 removed this from the 0.9.1 milestone Nov 15, 2019
@markus2330
Copy link
Contributor

I think it still happens from time to time. @Mistreated did you already investigate?

@mpranj
Copy link
Member

mpranj commented Apr 12, 2020

I think it still happens from time to time.

Happens on a regular basis. Sometimes many rebuilds do not help to the point that I gave up on this. Would be great if someone knows how to fix it.

@dbulatovic
Copy link
Contributor

Can you link the build that fails with this error?

@mpranj
Copy link
Member

mpranj commented Apr 13, 2020

Here is one example from master.

@dbulatovic
Copy link
Contributor

If this mistake happens from now on again. I would appreciate, if someone could link it if I do not see it immediately (debugging purposes).

@dbulatovic
Copy link
Contributor

Anyone encountered this problem last 10 days?

@dbulatovic
Copy link
Contributor

This error does not repeat after a default git user is set:

[user] name = Jenkins email = Jenkins <autobuilder@libelektra.org>

Closed.

@markus2330
Copy link
Contributor

It looks like this issue popped up again! It is some undocumented assumption of how build server agents are configured.

The error occurs on master: https://build.libelektra.org/blue/organizations/jenkins/libelektra/detail/master/793/pipeline

 > git tag -a -f -m Jenkins Build #793 jenkins-master-793 # timeout=10

Could not apply tag jenkins-master-793

@lukashartl can you please fix the Ansible scripts that the default git user will be set (see post directly above) and apply it to l1? I disabled l1 till then.

@markus2330 markus2330 reopened this Sep 4, 2022
@markus2330 markus2330 mentioned this issue Sep 5, 2022
31 tasks
@markus2330
Copy link
Contributor

@lukashartl any update here? I see l1 is enabled again?

@lukashartl
Copy link
Contributor

lukashartl commented Sep 5, 2022

has been fixed

@markus2330
Copy link
Contributor

Thx, so this issue can be closed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants