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

jgit save config lock file exception on CI #224

Open
lars06 opened this issue Mar 7, 2023 · 0 comments
Open

jgit save config lock file exception on CI #224

lars06 opened this issue Mar 7, 2023 · 0 comments

Comments

@lars06
Copy link

lars06 commented Mar 7, 2023

I am getting an exception when the Gradle daemon starts on Azure DevOps CI. I have tested with and without the plugin and it only occurs when using gradle-git-properties. Unfortunately it also significantly decreases the speed of my build (must be hanging somewhere before failing). Is there any way this can be fixed?

Exception:

/agent/_work/29/s/gradlew check
Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details

Creating lock file $HOME/.config/jgit/config.lock failed
Cannot save config file 'FileBasedConfig[$HOME/.config/jgit/config]'
java.io.IOException: Creating directories for /agent/_work/29/.gradle/daemon/7.6/$HOME/.config/jgit failed
	at gradlegitproperties.org.eclipse.jgit.util.FileUtils.mkdirs(FileUtils.java:412)
	at gradlegitproperties.org.eclipse.jgit.internal.storage.file.LockFile.lock(LockFile.java:138)
	at gradlegitproperties.org.eclipse.jgit.storage.file.FileBasedConfig.save(FileBasedConfig.java:219)
	at gradlegitproperties.org.eclipse.jgit.util.FS$FileStoreAttributes.saveToConfig(FS.java:740)
	at gradlegitproperties.org.eclipse.jgit.util.FS$FileStoreAttributes.lambda$4(FS.java:426)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

Gradle config:

plugins {
    id 'java-library'
    id "com.gorylenko.gradle-git-properties" version "2.4.1"
}

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(17)
    }
}

gitProperties {
    keys = ['git.branch','git.commit.id']
}

Thanks in advance!

@lars06 lars06 changed the title jgit save config lock file exception on Azure DevOps jgit save config lock file exception on CI Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant