Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cvvs’s:job-definitions cvvs$ ./gradlew test --info
Starting Build
Settings evaluated using settings file '/home/cvvs/devel/src/github.com/team/job-definitions/settings.gradle'.
Projects loaded. Root project using build file '/home/cvvs/devel/src/github.com/team/job-definitions/build.gradle'.
Included projects: [root project 'jenkins-dsl-project']
Evaluating root project 'jenkins-dsl-project' using build file '/home/cvvs/devel/src/github.com/team/job-definitions/build.gradle'.
All projects evaluated.
Selected primary task 'test' from project :
Tasks to be executed: [task ':compileJava', task ':compileGroovy', task ':processResources', task ':classes', task ':resolveTestPlugins', task ':compileTestJava', task ':compileTestGroovy', task ':processTestResources', task ':testClasses', task ':test']
:compileJava (Thread[main,5,main]) started.
:compileJava
Skipping task ':compileJava' as it has no source files.
:compileJava UP-TO-DATE
:compileJava (Thread[main,5,main]) completed. Took 0.016 secs.
:compileGroovy (Thread[main,5,main]) started.
:compileGroovy
Skipping task ':compileGroovy' as it is up-to-date (took 0.24 secs).
:compileGroovy UP-TO-DATE
:compileGroovy (Thread[main,5,main]) completed. Took 0.248 secs.
:processResources (Thread[main,5,main]) started.
:processResources
Skipping task ':processResources' as it is up-to-date (took 0.003 secs).
:processResources UP-TO-DATE
:processResources (Thread[main,5,main]) completed. Took 0.006 secs.
:classes (Thread[main,5,main]) started.
:classes
Skipping task ':classes' as it has no actions.
:classes UP-TO-DATE
:classes (Thread[main,5,main]) completed. Took 0.001 secs.
:resolveTestPlugins (Thread[main,5,main]) started.
:resolveTestPlugins
Skipping task ':resolveTestPlugins' as it is up-to-date (took 0.007 secs).
:resolveTestPlugins UP-TO-DATE
:resolveTestPlugins (Thread[main,5,main]) completed. Took 0.067 secs.
:compileTestJava (Thread[main,5,main]) started.
:compileTestJava
Skipping task ':compileTestJava' as it has no source files.
:compileTestJava UP-TO-DATE
:compileTestJava (Thread[main,5,main]) completed. Took 0.001 secs.
:compileTestGroovy (Thread[main,5,main]) started.
:compileTestGroovy
Skipping task ':compileTestGroovy' as it is up-to-date (took 0.513 secs).
:compileTestGroovy UP-TO-DATE
:compileTestGroovy (Thread[main,5,main]) completed. Took 0.515 secs.
:processTestResources (Thread[main,5,main]) started.
:processTestResources
Skipping task ':processTestResources' as it is up-to-date (took 0.004 secs).
:processTestResources UP-TO-DATE
:processTestResources (Thread[main,5,main]) completed. Took 0.006 secs.
:testClasses (Thread[main,5,main]) started.
:testClasses
Skipping task ':testClasses' as it has no actions.
:testClasses UP-TO-DATE
:testClasses (Thread[main,5,main]) completed. Took 0.001 secs.
:test (Thread[main,5,main]) started.
:test
Executing task ':test' (up-to-date check took 0.099 secs) due to:
Output file /home/cvvs/devel/src/github.com/team/job-definitions/build/reports/tests/classes/LoadAllScriptsTests.html has changed.
Output file /home/cvvs/devel/src/github.com/team/job-definitions/build/reports/tests/index.html has changed.
Output file /home/cvvs/devel/src/github.com/team/job-definitions/build/reports/tests/packages/default-package.html has changed.
Starting process 'Gradle Test Executor 1'. Working directory: /home/cvvs/devel/src/github.com/team/job-definitions Command: /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/java -DbuildDirectory=/home/cvvs/devel/src/github.com/team/job-definitions/build -Djava.security.manager=jarjar.org.gradle.process.internal.child.BootstrapSecurityManager -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea -cp /home/cvvs/.gradle/caches/2.2/workerMain/gradle-worker.jar jarjar.org.gradle.process.internal.launcher.GradleWorkerMain 'Gradle Test Executor 1'
Successfully started process 'Gradle Test Executor 1'
Gradle Test Executor 1 started executing tests.
LoadAllScriptsTests > test my flow build job STANDARD_OUT
Processing provided DSL script
Processing provided DSL script
Gradle Test Executor 1 finished executing tests.
LoadAllScriptsTests > test my flow build job FAILED
Expected no exception to be thrown, but got 'javaposse.jobdsl.dsl.DslScriptException'
at spock.lang.Specification.noExceptionThrown(Specification.java:118)
at LoadAllScriptsTests.test my flow build job(LoadAllScriptsTests.groovy:34)
Caused by:
javaposse.jobdsl.dsl.DslScriptException: (script, line 79) No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.slackNotifier() is applicable for argument types: (script$_run_closure1$_closure9$_closure14) values: [script$_run_closure1$_closure9$_closure14@d2392a1]
Possible solutions: stashNotifier(), stashNotifier(groovy.lang.Closure)
at javaposse.jobdsl.dsl.DslScriptLoader.runScriptEngine(DslScriptLoader.groovy:135)
at javaposse.jobdsl.dsl.DslScriptLoader.runScriptsWithClassLoader_closure1(DslScriptLoader.groovy:78)
at groovy.lang.Closure.call(Closure.java:426)
at groovy.lang.Closure.call(Closure.java:442)
at javaposse.jobdsl.dsl.DslScriptLoader.runScriptsWithClassLoader(DslScriptLoader.groovy:68)
at javaposse.jobdsl.dsl.DslScriptLoader.runScripts(DslScriptLoader.groovy:44)
at javaposse.jobdsl.dsl.DslScriptLoader.runScript(DslScriptLoader.groovy:58)
at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.groovy:182)
at LoadAllScriptsTests._spock_feature_0_0_closure2(LoadAllScriptsTests.groovy:30)
at groovy.lang.Closure.call(Closure.java:426)
at groovy.lang.Closure.call(Closure.java:442)
at LoadAllScriptsTests.test my flow build job(LoadAllScriptsTests.groovy:29)
Caused by:
groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.slackNotifier() is applicable for argument types: (script$_run_closure1$_closure9$_closure14) values: [script$_run_closure1$_closure9$_closure14@d2392a1]
Possible solutions: stashNotifier(), stashNotifier(groovy.lang.Closure)
at javaposse.jobdsl.dsl.AbstractExtensibleContext.methodMissing(AbstractExtensibleContext.groovy:19)
at script.run_closure1$_closure9(script:79)
at script.run_closure1$_closure9(script)
at javaposse.jobdsl.dsl.ContextHelper.executeInContext(ContextHelper.groovy:16)
at javaposse.jobdsl.dsl.Job.publishers(Job.groovy:644)
at script.run_closure1(script:77)
at groovy.lang.Closure.call(Closure.java:426)
at groovy.lang.Closure.call(Closure.java:442)
at javaposse.jobdsl.dsl.JobParent.processItem(JobParent.groovy:134)
at javaposse.jobdsl.dsl.JobParent.freeStyleJob(JobParent.groovy:46)
at javaposse.jobdsl.dsl.JobParent.job(JobParent.groovy:38)
at script.run(script:17)
at javaposse.jobdsl.dsl.DslScriptLoader.runScriptEngine(DslScriptLoader.groovy:129)
... 11 more
1 test completed, 1 failed
Finished generating test XML results (0.009 secs) into: /home/cvvs/devel/src/github.com/team/job-definitions/build/test-results
Generating HTML test report...
Finished generating test html results (0.024 secs) into: /home/cvvs/devel/src/github.com/team/job-definitions/build/reports/tests
:test FAILED
:test (Thread[main,5,main]) completed. Took 4.029 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/cvvs/devel/src/github.com/team/job-definitions/build/reports/tests/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 7.092 secs
Stopped 0 compiler daemon(s).
cvvs’s:job-definitions cvvs$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.