vbehar / jenkins-rundeck-plugin

Jenkins plugin for RunDeck integration : trigger, notifier and option provider.
http://wiki.jenkins-ci.org/display/JENKINS/RunDeck+Plugin
17 stars 74 forks source link

RundeckApiException due to a lowercase error #23

Closed bolivard-k closed 3 years ago

bolivard-k commented 3 years ago

After upgrading from version 3.6.7 to version 3.6.9, my Jenkins job crashes. Here are the extracts of logs of the executions with the 2 versions of the plugin:

rundeck-3.6.7

[Pipeline] step
Instance 'rundeck-int' with rundeck user '*****': Notifying Rundeck...
Looking for jobId : d210c99c-e08b-45ca-8221-f0c68169999
Notification succeeded ! Execution #150108, at http://********/api/36/execution/150108 (status : RUNNING)
Waiting for Rundeck execution to finish...
Rundeck execution #150108 finished in 3 seconds, with status : SUCCEEDED

rundeck-3.6.9

[Pipeline] step
Instance 'rundeck-int' with rundeck user '*******': Notifying Rundeck...
Looking for jobId : d210c99c-e08b-45ca-8221-f0c6816ddd4
Notification succeeded ! Execution #150109, at http://*********/project/TECOP_OL/execution/show/150109 (status : running)
Waiting for Rundeck execution to finish...
Rundeck execution #150109 finished in null, with status : running
Error while talking to Rundeck's API at http://*********** : null
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] ansiColor
[Pipeline] {

[Pipeline] echo
❌ hudson.AbortException: Error while talking to Rundeck's API at http://*********** : null ❌

You can note the difference of case in the statuses returned by Rundeck: uppercase in 3.6.7 and lowecase in 3.6.9.

Maybe the problem is in this block ? https://github.com/vbehar/jenkins-rundeck-plugin/blob/2fc547f91d44cd74df141b1665ebc6d9d55c9df0/src/main/java/org/jenkinsci/plugins/rundeck/RundeckNotifier.java#L183-L191

My configuration: Jenkins 2.263.1 Rundeck 3.3.6-20201111

Any fix?

bolivard-k commented 3 years ago

fix 😉 thanks