[JIRA] (JENKINS-50523) setami doesn't update global config file

0 views
Skip to first unread message

achalshah20@gmail.com (JIRA)

unread,
Apr 2, 2018, 2:04:03 PM4/2/18
to jenkinsc...@googlegroups.com
Achal Shah created an issue
 
Jenkins / Bug JENKINS-50523
setami doesn't update global config file
Issue Type: Bug Bug
Assignee: Francis Upton
Components: ec2-plugin
Created: 2018-04-02 18:03
Environment: Jenkins ver. 2.114
Labels: ami setami
Priority: Minor Minor
Reporter: Achal Shah

Hi, I am using groovy script to update AMI id for my nodes at jenkins. I am using setami api to do that. From past 2 weeks I am observing some strange behavior in this api.

 

When I do setami(some_ami_id), it updates on jenkins config page but after restarting my jenkins server, the information is lost and I am back to old AMI id. I backtraced this issue and found out. setami doesn't update /var/lib/jenkins/config.xml file. Thanks!

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

achalshah20@gmail.com (JIRA)

unread,
Apr 2, 2018, 2:05:02 PM4/2/18
to jenkinsc...@googlegroups.com
Achal Shah updated an issue
Change By: Achal Shah
Hi, I am using groovy script to update AMI id for my nodes at jenkins. I am using setami api to do that. From past 2 weeks I am observing some strange behavior in this api.

 

When I do setami(some_ami_id), it updates on jenkins config page but after restarting my jenkins server, the information is lost and I am back to old AMI id. I backtraced this issue and found out . , setami doesn't update /var/lib/jenkins/config.xml file. Thanks!

achalshah20@gmail.com (JIRA)

unread,
Apr 2, 2018, 2:39:02 PM4/2/18
to jenkinsc...@googlegroups.com
Achal Shah updated an issue
Hi, I am using groovy script to update AMI id for my nodes at jenkins. I am using setami api to do that. From past 2 weeks I am observing some strange behavior in this api. (Executing groovy script using curl)

 

When I do setami(some_ami_id), it updates on jenkins config page but after restarting my jenkins server, the information is lost and I am back to old AMI id. I backtraced this issue and found out, setami doesn't update /var/lib/jenkins/config.xml file. Thanks!

raihaan.shouhell@autodesk.com (JIRA)

unread,
Jul 7, 2019, 11:27:01 PM7/7/19
to jenkinsc...@googlegroups.com
Raihaan Shouhell commented on Bug JENKINS-50523
 
Re: setami doesn't update global config file

calling Jenkins.get().save() should save the config

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

raihaan.shouhell@autodesk.com (JIRA)

unread,
Jul 31, 2019, 5:27:02 AM7/31/19
to jenkinsc...@googlegroups.com
Raihaan Shouhell resolved as Not A Defect
 
Change By: Raihaan Shouhell
Status: Open Resolved
Resolution: Not A Defect

alpatisunil@gmail.com (JIRA)

unread,
Aug 2, 2019, 6:14:02 PM8/2/19
to jenkinsc...@googlegroups.com

alpatisunil@gmail.com (JIRA)

unread,
Aug 2, 2019, 6:14:02 PM8/2/19
to jenkinsc...@googlegroups.com
Sunil Alpati edited a comment on Bug JENKINS-50523
Any update in on this issue [~achalshah20]

alpatisunil@gmail.com (JIRA)

unread,
Aug 2, 2019, 6:15:02 PM8/2/19
to jenkinsc...@googlegroups.com

Raihaan Shouhell is that right call?

Is this `Jenkins.getInstance().save()`

alpatisunil@gmail.com (JIRA)

unread,
Aug 2, 2019, 7:09:02 PM8/2/19
to jenkinsc...@googlegroups.com

raihaan.shouhell@autodesk.com (JIRA)

unread,
Aug 18, 2019, 11:08:02 PM8/18/19
to jenkinsc...@googlegroups.com

You have to save the config after setting the ami. Normally you would have to replace the entire cloud since Normally you only get a non-modifiable list

Reply all
Reply to author
Forward
0 new messages