Libelektra: Jenkins: git tag sometimes fails

Created on 26 Sep 2019  ·  20Comments  ·  Source: ElektraInitiative/libelektra

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 😭.

bug continuous integration urgent

Most helpful comment

Here is one example from master.

All 20 comments

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.

@Mistreated any progress on Debian packaging?

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

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

https://github.com/ElektraInitiative/libelektra/blob/5519cb8066a096215a3701ca3d8c02fcebe54914/scripts/jenkins/Jenkinsfile#L1050-L1059

. Here is some documentation for the plugin.

@ingwinlu do you have an idea?

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

Seems like commit 883e0e7 did not fix this problem.

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

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

Why are the git config commands missing there? 794cfdf7747423ed0240c82987dec69ee2065f01

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 https://github.com/ElektraInitiative/libelektra/issues/3009#issuecomment-535405854)

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

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

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

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

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.

Can you link the build that fails with this error?

Here is one example from master.

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).

Anyone encountered this problem last 10 days?

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

[user] name = Jenkins email = Jenkins <[email protected]>

Closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mpranj picture mpranj  ·  3Comments

mpranj picture mpranj  ·  3Comments

dmoisej picture dmoisej  ·  3Comments

sanssecours picture sanssecours  ·  3Comments

markus2330 picture markus2330  ·  4Comments