update_from_files.py should read credentials from file

RESOLVED FIXED

Status

P3
normal
RESOLVED FIXED
9 years ago
5 years ago

People

(Reporter: rail, Assigned: rail)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

9 years ago
buildbotcustom/buildbotcustom/bin/update_from_files.py currently is being run from crontab and uses command line parameters to get user/password. 

It would be great if update_from_files.py could read credentials from a file, so we can send the output of the cronjob to release@mozilla.com

Updated

9 years ago
Assignee: nobody → raliiev
(Assignee)

Comment 1

9 years ago
Created attachment 431572 [details] [diff] [review]
update_from_files.py.diff

Chris,

Please take a look. 

The main idea is reading missing command line parameters from an ini file.

Example config:

----------------------------------------
[DEFAULT]
master = master:9999
database = mysql://user@pass:server/base?param1=x&param2=y
name = Description goes here
----------------------------------------

The file can be safely chmoded 600, or even 400 :)
Attachment #431572 - Flags: review?(catlee)
(Assignee)

Updated

9 years ago
Status: NEW → ASSIGNED
Priority: -- → P3

Updated

9 years ago
Attachment #431572 - Flags: review?(catlee) → review+
(Assignee)

Updated

9 years ago
Attachment #431572 - Flags: checked-in?
Comment on attachment 431572 [details] [diff] [review]
update_from_files.py.diff

changeset:   636:1fa53b45a8f5
Attachment #431572 - Flags: checked-in? → checked-in+
(Assignee)

Comment 3

9 years ago
Deployed on production-master, production-master02 and talos-master.
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.