I've been using a simple jenkins job to download and compile gradle
# Download source
git clone https://github.com/gradle/gradle.git -b v${GRADLE_VERSION} gradle
# Build package
cd gradle
JAVA_HOME=/apps/was/java/${JAVA_VERSION} ./gradlew install -Pgradle_installPath=${JENKINS_DIR}/gradle-install --project-prop finalRelease=true
cd ${JENKINS_DIR}/gradle-install
rm -rf bin/*.bat
tar cfzS ${JENKINS_DIR}/gradle-${GRADLE_VERSION}.tar.gz *
I find I can't do this now without both unsetting JENKINS_HOME and removing the .git directory:
unset JENKINS_HOME
rm -rf .git
If I don't unset JENKINS_HOME I get the following error:
./gradlew install -Pgradle_installPath=/apps/was/jenkins/workspace/Compile_Gradle/gradle-install --project-prop finalRelease=true
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Watching the file system is an incubating feature.
Watching the file system is not supported on this operating system.
Dependency verification is an incubating feature.
FAILURE: Build failed with an exception.
* Where:
Settings file '/apps/was/jenkins/workspace/Compile_Gradle/gradle/settings.gradle.kts' line: 26
* What went wrong:
An exception occurred applying plugin request [id: 'com.gradle.enterprise.gradle-enterprise-conventions-plugin', version: '0.7.1']
> Failed to apply plugin 'com.gradle.enterprise.gradle-enterprise-conventions-plugin'.
> java.lang.NullPointerException (no error message)
If I unset JENKINS_HOME and leave the .git directory I get:
I've been using a simple jenkins job to download and compile gradle
I find I can't do this now without both unsetting JENKINS_HOME and removing the .git directory:
unset JENKINS_HOME
rm -rf .git
If I don't unset JENKINS_HOME I get the following error:
If I unset JENKINS_HOME and leave the .git directory I get:
Is there a way to get the plugin to treat this as a local build? As running the command on the box manually worked just fine