Jenkin Plugin Issue

Hi Team,

I have successfully imported the jenkins plugin in our environment.As I tried to trigger the jenkins job using jenkins build trigger getting the tast execution error.

Hi @ibrahim can you provide the error message from the logs?

Hello @aabraham. I got the below error messages when I execute Jenkins task.

==========
2022-12-29_08:11:37.00096 ‘’[2022-12-29 08:11:37,011] [RxCachedThreadScheduler-9] INFO c.m.t.TaskService - executing task: com.morpheus.task.Task : 117
2022-12-29_08:11:37.01192 '1
2022-12-29_08:11:37.21682 '[2022-12-29 08:11:37,215] [RxCachedThreadScheduler-3] ERROR c.m.t.TaskService - executeLocalTask error: java.lang.IllegalArgumentException: Text must not be null or empty
2022-12-29_08:11:37.21685 'java.lang.IllegalArgumentException: Text must not be null or empty
2022-12-29_08:11:37.21685 at groovy.json.JsonSlurper.parseText(JsonSlurper.java:202)
2022-12-29_08:11:37.21686 at groovy.json.JsonSlurper$parseText.call(Unknown Source)
2022-12-29_08:11:37.21686 at com.morpheusdata.jenkins.JenkinsTaskService.executeTask(JenkinsTaskService.groovy:127)
2022-12-29_08:11:37.21687 at com.morpheusdata.jenkins.JenkinsTaskService$executeTask.callCurrent(Unknown Source)
2022-12-29_08:11:37.21687 at com.morpheusdata.jenkins.JenkinsTaskService.executeLocalTask(JenkinsTaskService.groovy:44)
2022-12-29_08:11:37.21687 at com.morpheusdata.core.ExecutableTaskInterface$executeLocalTask.call(Unknown Source)
2022-12-29_08:11:37.21688 at com.morpheus.task.TaskService.executeLocalTask(TaskService.groovy:739)
2022-12-29_08:11:37.21688 at jdk.internal.reflect.GeneratedMethodAccessor10422.invoke(Unknown Source)
2022-12-29_08:11:37.21689 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-12-29_08:11:37.21689 at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-12-29_08:11:37.21691 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
2022-12-29_08:11:37.21692 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
2022-12-29_08:11:37.21692 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:351)
2022-12-29_08:11:37.21693 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:61)
2022-12-29_08:11:37.21694 at com.morpheus.task.TaskService$_executeSingleLocalTask_closure30$_closure108$_closure109.doCall(TaskService.groovy:527)
2022-12-29_08:11:37.21695 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-12-29_08:11:37.21695 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2022-12-29_08:11:37.21696 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-12-29_08:11:37.21696 at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-12-29_08:11:37.21696 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
2022-12-29_08:11:37.21697 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
2022-12-29_08:11:37.21697 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:263)
2022-12-29_08:11:37.21699 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
2022-12-29_08:11:37.21700 at groovy.lang.Closure.call(Closure.java:412)
2022-12-29_08:11:37.21700 at groovy.lang.Closure.call(Closure.java:428)
2022-12-29_08:11:37.21700 at org.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:297)
2022-12-29_08:11:37.21701 at org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:241)
2022-12-29_08:11:37.21703 at org.grails.orm.hibernate.GrailsHibernateTemplate.executeWithNewSession(GrailsHibernateTemplate.java:153)
2022-12-29_08:11:37.21704 at org.grails.orm.hibernate.AbstractHibernateDatastore.withNewSession(AbstractHibernateDatastore.java:360)
2022-12-29_08:11:37.21704 at org.grails.orm.hibernate.AbstractHibernateGormStaticApi.withNewSession(AbstractHibernateGormStaticApi.groovy:78)
2022-12-29_08:11:37.21704 at org.grails.datastore.gorm.GormEntity$Trait$Helper.withNewSession(GormEntity.groovy:1027)
2022-12-29_08:11:37.21705 at jdk.internal.reflect.GeneratedMethodAccessor1881.invoke(Unknown Source)
2022-12-29_08:11:37.21705 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-12-29_08:11:37.21706 at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-12-29_08:11:37.21706 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
2022-12-29_08:11:37.21708 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
2022-12-29_08:11:37.21709 at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1529)
2022-12-29_08:11:37.21709 at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:1003)
2022-12-29_08:11:37.21710 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:180)
2022-12-29_08:11:37.21710 at com.morpheus.task.Task.withNewSession(Task.groovy)
2022-12-29_08:11:37.21711 at com.morpheus.task.Task$withNewSession$5.call(Unknown Source)

The fix for this is being worked on here: Error when running jenkins task without build parameters · Issue #1 · gomorpheus/morpheus-jenkins-plugin · GitHub

1 Like

Hi ctaylor,

As I tried to run the task again still I am getting the same task execution failure error.

Regards,
Ibrahim K

I am available for the troubleshooting session please let me know your availability we can get on call and troubleshoot together ?

Regards,
Ibrahim K

Hi @ibrahim

The pull request for the fix has not yet been merged, therefore the Jenkins Plugin does not yet have the fix. You can monitor when the fix is merged here: Error when running jenkins task without build parameters · Issue #1 · gomorpheus/morpheus-jenkins-plugin · GitHub

Hi @ctaylor ,

Do we have any timeline that when this fix will be released?
Actually this Jenkins integration issue is raised by one of the customers and they need some information when this fix can be released?

Thank you.
BR

The pull request has merged but the fix has not yet been tagged a release and uploaded onto share.morpheusdata.com. While you wait for the official new version I have compiled the latest code and uploaded the JAR file here so you can test the fix now: morpheus-jenkins-plugin-1.0.2-all.jar.zip - Droplr. Please remember that this plugin is open-source, so feel-free to compile the latest code yourself and use the new plugin.

Thanks Ctaylor.The plugin is working as expected thanks for sharing the updated version as earlier.