Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Hudson-ci/Containers/IBM WebSphere/deleteHudsonServer

< Hudson-ci‎ | Containers‎ | IBM WebSphere
Revision as of 06:34, 2 September 2011 by Duncan.r.mills.gmail.com (Talk | contribs) (New page: {{hudson|pageTitle=deleteHudsonServer.py Script}} <pre> ############################################################## # Delete the hudson application server in WebSphere Application Serve...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Hudson Continuous Integration Server
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse Source
Hudson-bust.png deleteHudsonServer.py Script










##############################################################
# Delete the hudson application server in WebSphere Application Server
# that was created by the createHudsonServer.py script.
#
# Author: Chris Graham - chrisgwarp@gmail.com
#
##############################################################

print "------------------------------------------------------------------------"
print "deleteHudsonServer.py - Started"

execfile('wsadminlib.py')

#enableDebugMessages()

##############################################################
# Program Entry Point
##############################################################

successful = 1

try:
    # Specify the node and server names to be used.
    nodeName = "inet3Node01"
    serverName = "hudson"

    print "Stopping Server: %s on %s" % (serverName, nodeName)
    stopServer( nodeName, serverName )

    print "Deleting Hudson Virtual Host: %s" % (serverName)
    deleteVirtualHost( serverName )

    print "Deleting Hudson Server: %s on %s" % (serverName, nodeName)
    deleteServerByNodeAndName( nodeName, serverName )

    # Now save the configuration
    saveAndSync()

    print "------------------------------------------------------------------------"
    print "deleteHudsonServer.py - Finished - SUCCESSFULLY"
    print "------------------------------------------------------------------------"

except:
    print "------------------------------------------------------------------------"
    print "deleteHudsonServer.py - Finished - UNSUCCESSFULLY!!!"
    print "------------------------------------------------------------------------"
    successful = 0

if successful == 0:
    raise RuntimeError("FAILED")

Back to the top