Created
September 13, 2017 19:52
-
-
Save tvon/887d98a53c64868ad55674d8e7426466 to your computer and use it in GitHub Desktop.
Debugging gradle.build / jenkins issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'org.jenkins-ci.jpi' version '0.22.0' | |
id 'groovy' | |
id 'java' | |
id 'idea' | |
} | |
build.dependsOn jpi | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
group = 'org.jenkins-ci.plugins' | |
version = '0.0.1-DEV' | |
idea { | |
module { | |
downloadJavadoc = true | |
downloadSources = true | |
} | |
} | |
jenkinsPlugin { | |
coreVersion = '2.60.3' | |
shortName = 'continious' | |
displayName = 'Continious' | |
pluginFirstClassLoader = true | |
maskClasses = 'groovy.grape org.apache.commons.codec' | |
compatibleSinceVersion = '1.60.0' | |
disabledTestInjection = false | |
localizerOutputDir = "${project.buildDir}/generated-src/localizer" | |
fileExtension = 'hpi' | |
configureRepositories = false | |
configurePublishing = false | |
} | |
//configurations { | |
// Dunno if it is needed but it errors trying to find it | |
//testCompile.exclude group: 'org.netbeans.modules', module: 'org-netbeans-insane' | |
//} | |
repositories { | |
maven { url 'https://repo.jenkins-ci.org/releases/' } | |
maven { url 'https://repo.jenkins-ci.org/releases/org/jenkins-ci/main/jenkins-core/' } | |
// org-netbeans-insane is not available (compiled) from the jenkins repo, so add this. | |
maven { url "http://bits.netbeans.org/nexus/content/groups/netbeans" } | |
// http://bits.netbeans.org/nexus/content/groups/netbeans/org/netbeans/modules/org-netbeans-insane/RELEASE72/ | |
// Needed for Jenkins to find jbcrypt...? | |
maven { url 'https://repo.jenkins-ci.org/public/' } | |
//maven {url "http://bits.netbeans.org/maven2" } | |
mavenCentral() | |
} | |
dependencies { | |
compile 'org.codehaus.groovy:groovy-all:2.4.8' | |
//testCompile 'junit:junit:4.12' | |
//.apparently required else test build fails | |
//testCompile group: 'org.netbeans.modules', name: 'org-netbeans-insane', version: 'RELEASE72' | |
// Taken from Dockerfile for cicd image | |
jenkinsPlugins 'org.jenkins-ci.plugins:branch-api:2.0.11@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:build-pipeline-plugin:1.5.7.1@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:build-timeout:1.18@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:cloudbees-folder:6.1.2@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:credentials-binding:1.13@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:docker-workflow:1.13@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:dockerhub-notification:2.2.0@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:email-ext:2.59@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:git:3.5.1@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:github-branch-source:2.2.3@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:github-oauth:0.27@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:github-pullrequest:0.1.0-rc26@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:job-dsl:1.65@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:jquery:1.11.2-1@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:mailer:1.20@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:matrix-auth:1.7@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:modernstatus:1.2@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:pipeline-github-lib:1.0@jar' | |
jenkinsPlugins 'org.jenkins-ci.plugins:swarm:3.4@jar' | |
compile fileTree(dir: 'lib', include: ['*.jar']) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./gradlew build | |
:localizer UP-TO-DATE | |
:compileJava NO-SOURCE | |
:compileGroovy | |
:processResources NO-SOURCE | |
:classes | |
:war UP-TO-DATE | |
:assemble UP-TO-DATE | |
:generate-test-hpl UP-TO-DATE | |
:insertTest UP-TO-DATE | |
:compileTestJava FAILED | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Could not resolve all files for configuration ':testCompileClasspath'. | |
> Could not find org-netbeans-insane.jar (org.netbeans.modules:org-netbeans-insane:RELEASE72). | |
Searched in the following locations: | |
https://repo.jenkins-ci.org/releases/org/netbeans/modules/org-netbeans-insane/RELEASE72/org-netbeans-insane-RELEASE72.jar | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. | |
BUILD FAILED | |
Total time: 2.645 secs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment