When I started at CloudBees and worked with new customers on ElectricCommander implementations, they pretty much all had the same pattern of question: “How do I manage my jobs, clean up my database and my disk partition." The concern was that customers realized that the amount of disk space usage could add up fairly quickly since ElectricCommander data ends up in multiple places: (1) in the database where metadata is store and (2) in file servers where log files are kept. My answer was along the line “It’s easy, simply write a procedure and assign it to a schedule to run it on a regular basis." “But why isn’t it part of the offering?” was the usual follow-up question. I had to admit they had a point. Talking to my colleagues, it seems it was not an isolated case. If you have been an ElectricCommander user for a while, you understand this is not very difficult to write but for a new user it could be a daunting task to figure out all the involved pieces, the API, strategy on what to keep and what to delete, and how to obsolete data. It soon became very clear that I could put something together fairly quickly and publish it on CloudBees’s GitHub community for everyone to access. I started to work on it in my “spare time” to write some of those basic administration tasks that could be useful to some of my customers. My goal was not to create the ultimate ElectricCommander procedure but to provide a framework for people to use and expand as their needs grow. EC-Admin v1.3.2 includes:
Job and space management
Artifact management (including Artifact Repositories and Artifact Caches on agents)
Project by project export for backup
function to invoke Commander API with integrated error management
Perl Headers for XML and JSON format
Function to get the value of a property (or undef if it does not exist)
Today this work can be accessed on our GitHub Commander repository at https://github.com/electriccommunity/electriccommander/tree/master/EC-Admin Give it a try and let me know what you think by leaving a comment below or contacting us directly by email . This is an ongoing project.
Stay up to date
We'll never share your email address and you can opt out at any time, we promise.