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

Open
sanssecours opened this issue Sep 26, 2019 · 12 comments

Comments

@sanssecours
Copy link
Member

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

This comment has been minimized.

Copy link
Contributor

commented Sep 26, 2019

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

This comment has been minimized.

Copy link
Member Author

commented Sep 26, 2019

@Mistreated any progress on Debian packaging?

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

@sanssecours

This comment has been minimized.

Copy link
Member Author

commented Sep 26, 2019

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

This comment has been minimized.

Copy link
Contributor

commented Sep 26, 2019

@ingwinlu do you have an idea?

@markus2330

This comment has been minimized.

Copy link
Contributor

commented Sep 27, 2019

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

@sanssecours

This comment has been minimized.

Copy link
Member Author

commented Sep 29, 2019

Seems like commit 883e0e7 did not fix this problem.

@sanssecours sanssecours reopened this Sep 29, 2019
markus2330 added a commit that referenced this issue Sep 29, 2019
@markus2330

This comment has been minimized.

Copy link
Contributor

commented Sep 30, 2019

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

This comment has been minimized.

Copy link
Member Author

commented Oct 2, 2019

@markus2330

This comment has been minimized.

Copy link
Contributor

commented Oct 2, 2019

Why are the git config commands missing there? 794cfdf

@sanssecours

This comment has been minimized.

Copy link
Member Author

commented Oct 3, 2019

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

This comment has been minimized.

Copy link
Member Author

commented Oct 3, 2019

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

@markus2330

This comment has been minimized.

Copy link
Contributor

commented Oct 3, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.