[JIRA] (JENKINS-58136) vSphere cloud plugin 2.19, Shutdown gracefully option is always unchecked when opening Configuration

32 views
Skip to first unread message

casaba@gmail.com (JIRA)

unread,
Jun 21, 2019, 4:28:02 AM6/21/19
to jenkinsc...@googlegroups.com
Che Duro created an issue
 
Jenkins / Bug JENKINS-58136
vSphere cloud plugin 2.19, Shutdown gracefully option is always unchecked when opening Configuration
Issue Type: Bug Bug
Assignee: Unassigned
Components: vsphere-cloud-plugin
Created: 2019-06-21 08:27
Environment: Jenkins 2.176.1
vSphere cloud plugin 2.19
Priority: Minor Minor
Reporter: Che Duro

In a non-scripted pipeline, a vSphere Build Step set to vSphere Action 'Power-Off VM', the 'Shutdown gracefully' option is always shown unchecked when opening a job Configuration.

When the option is enabled and the configuration saved, the Job Config History shows:
<shutdownGracefully>true</shutdownGracefully>

If the Configuration is reopened and resaved without re-enabling this option, the Job Config History shows:
<shutdownGracefully>false</shutdownGracefully>


 

Reproduction:

# Create a job with vSphere Build Step set to vSphere Action 'Power-Off VM', the 'Shutdown gracefully' option enabled, and save the configuration

# Reopen Configuration for this job
>  'Shutdown gracefully' option is incorrectly shown as disabled

  1. Save Configuration without modifying this option> The shutdownGracefully option has been set to false in job configuration
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

casaba@gmail.com (JIRA)

unread,
Jun 21, 2019, 4:33:02 AM6/21/19
to jenkinsc...@googlegroups.com
Che Duro updated an issue
Change By: Che Duro
In a non-scripted pipeline, a vSphere Build Step set to vSphere Action 'Power-Off VM', the 'Shutdown gracefully' option is always shown unchecked when opening a job Configuration.

When the option is enabled and the configuration saved, the Job Config History shows:
{color:#333333}<shutdownGracefully>true</shutdownGracefully>{color}

{color:#333333}
{color:#172b4d} If the Configuration is reopened and resaved without re-enabling this option, the Job Config History shows:
<shutdownGracefully>false</shutdownGracefully>

{color} {color}


 

{color
Note : #333333}{color:#172b4d}   version 2.18 works correctly.

Reproduction: {color}{color}
#
{color:#333333}{color:#172b4d} Create a job with vSphere Build Step set to vSphere Action 'Power-Off VM', the 'Shutdown gracefully' option enabled, and save the configuration {color}{color}
#
{color:#333333}{color:#172b4d} Reopen Configuration for this job {color}{color}{color:#333333}{color:#172b4d} >  'Shutdown gracefully' option is incorrectly shown as disabled {color}{color}
# Save Configuration without modifying this option> The shutdownGracefully option has been set to false in job configuration

pjdarton@gmail.com (JIRA)

unread,
Aug 15, 2019, 12:43:02 PM8/15/19
to jenkinsc...@googlegroups.com
pjdarton commented on Bug JENKINS-58136
 
Re: vSphere cloud plugin 2.19, Shutdown gracefully option is always unchecked when opening Configuration

I think I've found the error: The code was changed to say

checked="false"

I'd guess that removing that attribute should fix the issue ... but I'm not an expert on Jenkins "jelly" code so this would require a bit of trial-and-error to be 100% sure.

sk_rw@yahoo.com (JIRA)

unread,
Aug 21, 2019, 4:04:03 PM8/21/19
to jenkinsc...@googlegroups.com

pjdarton@gmail.com (JIRA)

unread,
Aug 22, 2019, 5:59:02 AM8/22/19
to jenkinsc...@googlegroups.com
pjdarton updated Bug JENKINS-58136
 

PR#106 has been merged in and will be included in the next release.

i.e. This is fixed in the next release.

Change By: pjdarton
Status: Open Fixed but Unreleased
Resolution: Fixed

pjdarton@gmail.com (JIRA)

unread,
Aug 22, 2019, 6:45:03 AM8/22/19
to jenkinsc...@googlegroups.com
pjdarton commented on Bug JENKINS-58136
 
Re: vSphere cloud plugin 2.19, Shutdown gracefully option is always unchecked when opening Configuration

Che Duro FYI you can download a preview of the next release here: vsphere-cloud.hpi.
Please can you can test this and verify that this fixes the issue you raised.

pjdarton@gmail.com (JIRA)

unread,
Sep 24, 2019, 11:25:04 AM9/24/19
to jenkinsc...@googlegroups.com
 

Fixed in plugin version 2.21, which was released a few minutes ago.

Change By: pjdarton
Status: Fixed but Unreleased Resolved
Assignee: Rudolf-Walter Kiss-Szakacs
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

casaba@gmail.com (JIRA)

unread,
Oct 1, 2019, 3:49:02 AM10/1/19
to jenkinsc...@googlegroups.com
Che Duro closed an issue as Fixed
 

Fix verified in 2.21.  Many thanks.

Change By: Che Duro
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages