Skip to content
Failed

Console Output

Started by user Matthias Mueller
[Pipeline] node
Running on master in /var/lib/jenkins/workspace/appNG_Scheduler
[Pipeline] {
[Pipeline] stage
[Pipeline] { (git clone)
[Pipeline] git
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git@github.com:appNG/appng-scheduler.git # timeout=10
Fetching upstream changes from git@github.com:appNG/appng-scheduler.git
 > git --version # timeout=10
 > git fetch --tags --progress git@github.com:appNG/appng-scheduler.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/appng-scheduler-1.11.x^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/appng-scheduler-1.11.x^{commit} # timeout=10
Checking out Revision d25a82c9d8437381f6f90a6543b20ccbfd665367 (refs/remotes/origin/appng-scheduler-1.11.x)
Commit message: "SCHED-16 visualized if job bean is available"
 > git config core.sparsecheckout # timeout=10
 > git checkout -f d25a82c9d8437381f6f90a6543b20ccbfd665367
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D appng-scheduler-1.11.x # timeout=10
 > git checkout -b appng-scheduler-1.11.x d25a82c9d8437381f6f90a6543b20ccbfd665367
 > git rev-list d25a82c9d8437381f6f90a6543b20ccbfd665367 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Maven Build)
[Pipeline] tool
[Pipeline] sh
[appNG_Scheduler] Running shell script
+ /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.5.0/bin/mvn clean deploy
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building Scheduler 1.11.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ appng-scheduler ---
[INFO] Deleting /var/lib/jenkins/workspace/appNG_Scheduler/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ appng-scheduler ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/appNG_Scheduler/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ appng-scheduler ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 17 source files to /var/lib/jenkins/workspace/appNG_Scheduler/target/classes
[INFO] /var/lib/jenkins/workspace/appNG_Scheduler/src/main/java/org/appng/application/scheduler/quartz/DriverDelegateWrapper.java: /var/lib/jenkins/workspace/appNG_Scheduler/src/main/java/org/appng/application/scheduler/quartz/DriverDelegateWrapper.java uses or overrides a deprecated API.
[INFO] /var/lib/jenkins/workspace/appNG_Scheduler/src/main/java/org/appng/application/scheduler/quartz/DriverDelegateWrapper.java: Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ appng-scheduler ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 11 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ appng-scheduler ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /var/lib/jenkins/workspace/appNG_Scheduler/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ appng-scheduler ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.appng.application.scheduler.SchedulingTest
2017-09-27 18:29:10,530 INFO  [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2017-09-27 18:29:10,544 INFO  [main] org.springframework.test.context.support.DefaultTestContextBootstrapper: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@358c99f5, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@3ee0fea4, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@48524010, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4b168fa9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1a84f40f, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@23282c25]
2017-09-27 18:29:10,659 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from URL [file:application-home/beans.xml]
2017-09-27 18:29:10,872 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/appng/testsupport/application-testcontext.xml]
2017-09-27 18:29:10,900 INFO  [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [beans.xml]
2017-09-27 18:29:10,926 INFO  [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Overriding bean definition for bean 'scheduler' with a different definition: replacing [Generic bean: class [org.springframework.scheduling.quartz.SchedulerFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:application-home/beans.xml]] with [Generic bean: class [org.springframework.scheduling.quartz.SchedulerFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [beans.xml]]
2017-09-27 18:29:10,928 INFO  [main] org.springframework.beans.factory.support.DefaultListableBeanFactory: Overriding bean definition for bean 'indexJob' with a different definition: replacing [Generic bean: class [org.appng.application.scheduler.job.IndexJob]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:application-home/beans.xml]] with [Generic bean: class [org.appng.application.scheduler.job.IndexJob]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [beans.xml]]
2017-09-27 18:29:10,932 INFO  [main] org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@1d082e88: startup date [Wed Sep 27 18:29:10 CEST 2017]; root of context hierarchy
2017-09-27 18:29:11,199 INFO  [main] org.quartz.impl.StdSchedulerFactory: Using default implementation for ThreadExecutor
2017-09-27 18:29:11,220 INFO  [main] org.quartz.core.SchedulerSignalerImpl: Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2017-09-27 18:29:11,220 INFO  [main] org.quartz.core.QuartzScheduler: Quartz Scheduler v.2.2.3 created.
2017-09-27 18:29:11,221 INFO  [main] org.quartz.simpl.RAMJobStore  : RAMJobStore initialized.
2017-09-27 18:29:11,222 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler meta-data: Quartz Scheduler (v2.2.3) 'Scheduler_localhost' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 3 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

2017-09-27 18:29:11,222 INFO  [main] org.quartz.impl.StdSchedulerFactory: Quartz scheduler 'Scheduler_localhost' initialized from an externally provided properties instance.
2017-09-27 18:29:11,222 INFO  [main] org.quartz.impl.StdSchedulerFactory: Quartz scheduler version: 2.2.3
2017-09-27 18:29:11,223 INFO  [main] org.quartz.core.QuartzScheduler: JobFactory set to: org.appng.application.scheduler.TestJobFactory@25be7b63
2017-09-27 18:29:11,964 INFO  [main] org.hibernate.validator.internal.util.Version: HV000001: Hibernate Validator 5.4.1.Final
2017-09-27 18:29:12,071 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2017-09-27 18:29:12,725 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2017-09-27 18:29:12,748 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2017-09-27 18:29:12,769 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2017-09-27 18:29:12,792 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2017-09-27 18:29:12,849 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2017-09-27 18:29:12,870 INFO  [Scheduler_localhost_Worker-1] org.appng.application.scheduler.TestJobFactory: executing localhost.application_indexJob
2017-09-27 18:29:12,872 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2017-09-27 18:29:12,892 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED started.
2017-09-27 18:29:12,908 INFO  [main] org.springframework.context.support.GenericApplicationContext: Closing org.springframework.context.support.GenericApplicationContext@1d082e88: startup date [Wed Sep 27 18:29:10 CEST 2017]; root of context hierarchy
2017-09-27 18:29:12,910 INFO  [main] org.springframework.context.support.DefaultLifecycleProcessor: Stopping beans in phase 2147483647
2017-09-27 18:29:12,911 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED paused.
2017-09-27 18:29:12,911 INFO  [main] org.springframework.scheduling.quartz.SchedulerFactoryBean: Shutting down Quartz Scheduler
2017-09-27 18:29:12,911 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED shutting down.
2017-09-27 18:29:12,911 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED paused.
2017-09-27 18:29:12,912 INFO  [main] org.quartz.core.QuartzScheduler: Scheduler Scheduler_localhost_$_NON_CLUSTERED shutdown complete.
[ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.671 s <<< FAILURE! - in org.appng.application.scheduler.SchedulingTest
[ERROR] testShowJobs(org.appng.application.scheduler.SchedulingTest)  Time elapsed: 0.057 s  <<< FAILURE!
junit.framework.AssertionFailedError: 
XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '5' but was '6' - comparing <result...> at /data[1]/resultset[1]/result[1] to <result...> at /data[1]/resultset[1]/result[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<data xmlns="http://www.appng.org/schema/platform">
    <resultset chunk="0" chunkname="jobs" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="2">
        <result>
            <field name="name" type="text">
                <value>application_indexJob</value>
            </field>
            <field name="origin" type="text">
                <value>application</value>
            </field>
            <field name="cronExpression" type="text">
                <value>0 0/5 * * * ? 2042</value>
            </field>
            <field name="nextFireTime" type="date">
                <value>2042-01-01 00:00:00,000</value>
            </field>
            <field name="beanAvailable" type="image">
                <value>false</value>
                <icon type="class">led_red</icon>
            </field>
            <linkpanel id="actions" location="inline">
                <link id="actions[2]" mode="intern" target="">
                    <label id="scheduled">Job is scheduled</label>
                    <icon>scheduled</icon>
                </link>
                <link id="actions[4]" mode="intern" target="/jobs/update/application_indexJob#tab_update" default="true">
                    <label id="update">Update</label>
                    <icon>edit</icon>
                </link>
                <link id="actions[5]" mode="intern" target="" disabled="true">
                    <label id="schedule">Activate</label>
                    <icon>schedule</icon>
                </link>
                <link id="actions[6]" mode="intern" target="" disabled="true">
                    <label id="unschedule">Deactivate</label>
                    <icon>unschedule</icon>
                </link>
                <link id="actions[7]" mode="intern" target="" disabled="true">
                    <label id="start">Start</label>
                    <icon>start</icon>
                </link>
                <link id="actions[8]" mode="intern" target="/jobs?form_action=delete&amp;id=application_indexJob">
                    <label id="delete">Delete</label>
                    <icon>delete</icon>
                    <confirmation id="confirm.delete.job" params="#{name}">Do you really want to delete the job "application_indexJob"?</confirmation>
                </link>
            </linkpanel>
        </result>
        <result>
            <field name="name" type="text">
                <value>appng-scheduler_anotherJob</value>
            </field>
            <field name="origin" type="text">
                <value>appng-scheduler</value>
            </field>
            <field name="cronExpression" type="text">
                <value>0 0/20 * * * ? 2042</value>
            </field>
            <field name="nextFireTime" type="date">
                <value>2042-01-01 00:00:00,000</value>
            </field>
            <field name="beanAvailable" type="image">
                <value>true</value>
                <icon type="class">led_green</icon>
            </field>
            <linkpanel id="actions" location="inline">
                <link id="actions[2]" mode="intern" target="">
                    <label id="scheduled">Job is scheduled</label>
                    <icon>scheduled</icon>
                </link>
                <link id="actions[4]" mode="intern" target="/jobs/update/appng-scheduler_anotherJob#tab_update" default="true">
                    <label id="update">Update</label>
                    <icon>edit</icon>
                </link>
                <link id="actions[5]" mode="intern" target="" disabled="true">
                    <label id="schedule">Activate</label>
                    <icon>schedule</icon>
                </link>
                <link id="actions[6]" mode="intern" target="/jobs?form_action=unschedule&amp;id=appng-scheduler_anotherJob">
                    <label id="unschedule">Deactivate</label>
                    <icon>unschedule</icon>
                </link>
                <link id="actions[7]" mode="intern" target="/jobs?form_action=start&amp;id=appng-scheduler_anotherJob">
                    <label id="start">Start</label>
                    <icon>start</icon>
                </link>
                <link id="actions[8]" mode="intern" target="/jobs?form_action=delete&amp;id=appng-scheduler_anotherJob">
                    <label id="delete">Delete</label>
                    <icon>delete</icon>
                    <confirmation id="confirm.delete.job" params="#{name}">Do you really want to delete the job "appng-scheduler_anotherJob"?</confirmation>
                </link>
            </linkpanel>
        </result>
    </resultset>
</data>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '5' but was '6' - comparing <result...> at /data[1]/resultset[1]/result[1] to <result...> at /data[1]/resultset[1]/result[1]

	at org.appng.application.scheduler.SchedulingTest.testShowJobs(SchedulingTest.java:129)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   SchedulingTest.testShowJobs:129->TestBase.validate:432 XML does not match control XML
org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '5' but was '6' - comparing <result...> at /data[1]/resultset[1]/result[1] to <result...> at /data[1]/resultset[1]/result[1]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<data xmlns="http://www.appng.org/schema/platform">
    <resultset chunk="0" chunkname="jobs" chunksize="25" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="2">
        <result>
            <field name="name" type="text">
                <value>application_indexJob</value>
            </field>
            <field name="origin" type="text">
                <value>application</value>
            </field>
            <field name="cronExpression" type="text">
                <value>0 0/5 * * * ? 2042</value>
            </field>
            <field name="nextFireTime" type="date">
                <value>2042-01-01 00:00:00,000</value>
            </field>
            <field name="beanAvailable" type="image">
                <value>false</value>
                <icon type="class">led_red</icon>
            </field>
            <linkpanel id="actions" location="inline">
                <link id="actions[2]" mode="intern" target="">
                    <label id="scheduled">Job is scheduled</label>
                    <icon>scheduled</icon>
                </link>
                <link id="actions[4]" mode="intern" target="/jobs/update/application_indexJob#tab_update" default="true">
                    <label id="update">Update</label>
                    <icon>edit</icon>
                </link>
                <link id="actions[5]" mode="intern" target="" disabled="true">
                    <label id="schedule">Activate</label>
                    <icon>schedule</icon>
                </link>
                <link id="actions[6]" mode="intern" target="" disabled="true">
                    <label id="unschedule">Deactivate</label>
                    <icon>unschedule</icon>
                </link>
                <link id="actions[7]" mode="intern" target="" disabled="true">
                    <label id="start">Start</label>
                    <icon>start</icon>
                </link>
                <link id="actions[8]" mode="intern" target="/jobs?form_action=delete&amp;id=application_indexJob">
                    <label id="delete">Delete</label>
                    <icon>delete</icon>
                    <confirmation id="confirm.delete.job" params="#{name}">Do you really want to delete the job "application_indexJob"?</confirmation>
                </link>
            </linkpanel>
        </result>
        <result>
            <field name="name" type="text">
                <value>appng-scheduler_anotherJob</value>
            </field>
            <field name="origin" type="text">
                <value>appng-scheduler</value>
            </field>
            <field name="cronExpression" type="text">
                <value>0 0/20 * * * ? 2042</value>
            </field>
            <field name="nextFireTime" type="date">
                <value>2042-01-01 00:00:00,000</value>
            </field>
            <field name="beanAvailable" type="image">
                <value>true</value>
                <icon type="class">led_green</icon>
            </field>
            <linkpanel id="actions" location="inline">
                <link id="actions[2]" mode="intern" target="">
                    <label id="scheduled">Job is scheduled</label>
                    <icon>scheduled</icon>
                </link>
                <link id="actions[4]" mode="intern" target="/jobs/update/appng-scheduler_anotherJob#tab_update" default="true">
                    <label id="update">Update</label>
                    <icon>edit</icon>
                </link>
                <link id="actions[5]" mode="intern" target="" disabled="true">
                    <label id="schedule">Activate</label>
                    <icon>schedule</icon>
                </link>
                <link id="actions[6]" mode="intern" target="/jobs?form_action=unschedule&amp;id=appng-scheduler_anotherJob">
                    <label id="unschedule">Deactivate</label>
                    <icon>unschedule</icon>
                </link>
                <link id="actions[7]" mode="intern" target="/jobs?form_action=start&amp;id=appng-scheduler_anotherJob">
                    <label id="start">Start</label>
                    <icon>start</icon>
                </link>
                <link id="actions[8]" mode="intern" target="/jobs?form_action=delete&amp;id=appng-scheduler_anotherJob">
                    <label id="delete">Delete</label>
                    <icon>delete</icon>
                    <confirmation id="confirm.delete.job" params="#{name}">Do you really want to delete the job "appng-scheduler_anotherJob"?</confirmation>
                </link>
            </linkpanel>
        </result>
    </resultset>
</data>
, org.custommonkey.xmlunit.Diff
[different] Expected number of child nodes '5' but was '6' - comparing <result...> at /data[1]/resultset[1]/result[1] to <result...> at /data[1]/resultset[1]/result[1]

[INFO] 
[ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.252 s
[INFO] Finished at: 2017-09-27T18:29:13+02:00
[INFO] Final Memory: 51M/400M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project appng-scheduler: There are test failures.
[ERROR] 
[ERROR] Please refer to /var/lib/jenkins/workspace/appNG_Scheduler/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE