def main(self): import sys import os try: # Need a computer to get the version information computerName = "hal9000.vintela.com" halUser = User(name="root", password="******") computer = create_computer_with_hostname(computerName, "root", "auto123") if not computer: print "could not connect to {}. Exiting.".format(computerName) exit() # If full build is set then creat the full zip otherwise create the linux structure only if self.full_zip: print "Creating a full zip for qpm. This will include all packages and files" else: print "Creating Linux only zip. This will include only Linux packages for the agent and sudo_plugin. It will also include the Windows MCU" self.linux_only_zip(computer) finally: # Close the connection print "Last updated: {}".format(time.strftime('%h-%d-%Y %H:%M:%S')) computer.closeConnection()
def main(self): import sys import os # Need a computer to get the version information computerName = "hal9000.vintela.com" halUser = User(name="root", password="******") computer = create_computer_with_hostname(computerName, "root", "auto123") if not computer: print "could not connect to {}. Exiting.".format(computerName) exit() try: # Tag the build with an r for release if self.tagBuild != None: print "Tagging build {} as a release.".format(self.tagBuild) print "-------------------------------------------------------------------------" self.tagAsaRelease(computer, self.tagBuild) # Mark the build as a current release elif self.setReleaseBuild != None: print "Setting build {} as current release build".format(self.setReleaseBuild) print "-------------------------------------------------------------------------" self.setCurrentRelease(computer, self.setReleaseBuild) else: print "-------------------------------------------------------------------------" print "Updating the build list with the newest version, please stand by..." print "Current Time: {}".format(time.strftime('%h-%d-%Y %H:%M:%S')) print "-------------------------------------------------------------------------" if not self.updateQPM: version, build = self.getMCUiso(computer) if version == None or build == None: print "Could not find the version or the build number" computer.closeConnection() exit() print "MCU Build has now been updated. Latest Build: {}.{}".format(version, build) # Update the qpm4s ISO structure self.createQPM4sIso(computer) finally: print "\nFinished" # Close the connection computer.closeConnection()