WAS Builder Plugin

This plugin allows Hudson to invoke IBM WebSphere Application Server's wsadmin as a build step.

New homepage
This plug-in is being maintained by its owner/maintainers from a new home. The plug-in is still compatible with Hudson, however, the entry points for documentation and issue reporting have been combined in order to provide a single point of entry.


Plugin Information

Plugin ID was-builder
Latest Release 1.6.1
Latest Release Date Oct 20, 2011
Sources [External]
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

Quick Overview

This plugin allows to invoke the wsadmin command of IBM WebSphere Application Server (WAS) 6.0/6.1/7.0 as a build step. It can be used for example to deploy a freshly built application (self-promo: using the RAD Builder Plugin).

This plugin supports:

  • WAS 6.0 (versions 1.0 and 1.1 successfully tested with WAS 6.0.2.15 – should work with other 6.0.2.x versions)
  • WAS 6.1 (not yet tested)
  • WAS 7.0 (version 1.1 successfully tested with Administration Thin Client built from WAS 7.0.0.7 – should work with other 7.0.0.x versions)

Labels:

plugin-builder plugin-builder Delete
tier3-compat-plugin tier3-compat-plugin Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Dec 15, 2009

    Antony says:

    Is it possible to know when this plugin will be available? We want to use Hudson...

    Is it possible to know when this plugin will be available? We want to use Hudson to make some WAS deployment (WAS 6.1) and it will be useful for us.

    Antony

    1. Dec 16, 2009

      Romain Seguy says:

      Hello Antony, The plugin seems to work fine on Windows XP, I just need to do so...

      Hello Antony,

      The plugin seems to work fine on Windows XP, I just need to do some testing on Linux to see if the "Run if" stuff works fine (which I have a doubt). Once done, I'll release the plugin, maybe at the end of this week.
      Anyway, if you want to get it in advance, the source code is available in the SVN repository.

    2. Dec 18, 2009

      Romain Seguy says:

      The plugin has been released this morning (18/12/2009), it should appear soon in...

      The plugin has been released this morning (18/12/2009), it should appear soon in Hudson's plugins center.

  2. Jan 22, 2010

    Paul Cleary says:

    I have this plugin installed on the latest hudson release on linux. I have Webs...

    I have this plugin installed on the latest hudson release on linux.

    I have Websphere 6.1.0.21 installed locally as well.

    I would like to deploy to a remote websphere instance also running Websphere 6.1.0.21.

    I setup a WAS installation and WAS server, but I don't see where I configure the step in my Hudson Job. It is a Maven 2 job, can I only add the step in a freestyle project?

    Now, the tough question, I need to auto deploy to a remote server, any details on what should be in the Websphere step in my job to do that? I guess I need to Update the application, save everything, and restart the application server.

    Any help is greatly appreciated.

    Regards,
    Paul

    1. Jan 22, 2010

      Romain Seguy says:

      You're right, the plugin is currently restricted to freestyle projects as I don'...

      You're right, the plugin is currently restricted to freestyle projects as I don't have M2 projects to ensure it would work fine with it (I prefer restricting functionalities rather than providing buggy ones).
      If you wish, I can pack & send an "unlimited" version of the plugin for you to test so that I can officialy expand the scope of the plugin.

      For your last question, I use to do the following to deploy apps on a remote WAS server:

      1. I remotly invoke WAS's EARExpander.sh/.bat command to backup the currently deployed app
      2. The node is stopped if the user wants it (this is the purpose of the Run if field)
      3. The application is undeployed
      4. The updated app is then deployed
      5. The node is started (if the user wants it)
      6. The updated app is started

      Stopping/starting the node makes sense only the first time JAAS auth data are created or when the value of the password changes.
      Additional point: I always create two jobs to build apps: The first builds and unit-tests the app, the second one does the deployment on WAS.

      Regards,
      Romain

      1. Mar 02, 2010

        Praveen Atluri says:

        Hello Romain, 1) Are you using Power Shell plugin to invoke remote Websphere In...

        Hello Romain,

        1) Are you using Power Shell plugin to invoke remote Websphere Installation Scripts?

        2) I am trying to build and deploy maven project. Can you provide me the unlimited version of the plugin?

        Regards,

        Praveen Atluri

        1. Mar 05, 2010

          Romain Seguy says:

          The plugin uses wsadmin.bat/wsadmin.sh to administer WAS and, normally, version ...

          The plugin uses wsadmin.bat/wsadmin.sh to administer WAS and, normally, version 1.0.1 of the plugin is no more restricted to free style jobs.
          To use it directly from a Maven job, you need to install the M2 Extra Steps Plugin. But I would recommend splitting it to another downstream job since, IMO, build and deployment are clearly two different things.

  3. Apr 20, 2010

    zzstore says:

    Is there any way to run the wsadmin.sh script using sudo on unix?

    Is there any way to run the wsadmin.sh script using sudo on unix?

    1. Apr 20, 2010

      Romain Seguy says:

      If you describe exactly what you expect, I may integrate it.

      If you describe exactly what you expect, I may integrate it.

      1. Apr 20, 2010

        zzstore says:

        The plugin runs the following command: /usr/IBM/WAS61/AppServer/bin/wsadmin.sh &...

        The plugin runs the following command:
        /usr/IBM/WAS61/AppServer/bin/wsadmin.sh -conntype SOAP -host hostname -port 61000 -user.....

        The unix permissions of the WAS installation at our place are set such that I cannot run the wsadmin script without using sudo.
        Is there anyway you could run it as:
        /usr/sudo/sudo /usr/IBM/WAS61/AppServer/bin/wsadmin.sh -conntype SOAP -host ...

        1. Apr 20, 2010

          Romain Seguy says:

          What I'm going to do is adding a new field in the global config page to be able ...

          What I'm going to do is adding a new field in the global config page to be able to override the wsadmin command for each WAS installation.

        2. Apr 23, 2010

          Romain Seguy says:

          I've implemented your enhancement request, it's part of release 1.5.

          I've implemented your enhancement request, it's part of release 1.5.

          1. Apr 26, 2010

            zzstore says:

            Thanks, When can I expect release 1.5 to be available to download?

            Thanks, When can I expect release 1.5 to be available to download?

            1. Apr 26, 2010

              Romain Seguy says:

              I've released it last Friday, the SVN tag is in place (https://hudson.dev.java.n...

              I've released it last Friday, the SVN tag is in place (https://hudson.dev.java.net/svn/hudson/tags/was-builder-1.5/), the announcement too, so it might be the update center which is a little bit late.

  4. May 04, 2010

    kirthish says:

    Hi , My requirement is to deploy the application in Websphere Cluster environme...

    Hi ,

    My requirement is to deploy the application in Websphere Cluster environment , so following are the steps i followed in ant build file which i call in Hudson job 

    1. checkout code from CVS

    2. run a CMD file for building the application ear file , using wesphere python script .

    3. finally , restarting the manager and nodes

     which seems to be a hectic job

    how can i configure the WEBSPHERE - Cluster setup into Hudson using WAS-Plugin ,  and add pre-setup and post-setup  steps which will run

    my python script  and publish the deployment details.

    Thanks & Regards ,

    Kirthish Kulkarni.

  5. Oct 13, 2010

    Jason Vorpahl says:

    Romain, Thanks for building the plug-in. It works great but I'm having a small ...

    Romain,

    Thanks for building the plug-in. It works great but I'm having a small issue. When a deployment fails, it still says the build is successful. Is there something I can do to pass the value back to Hudson? When I run wsadmin outside of the plugin see that the %ERRORLEVEL% parameter is > 0 (105 to exact) when it exits on error. But the plugin must be preventing Hudson from recognizing the error code of the wsadmin.bat program. I could use the windows batch command build option but the plugin makes everything much easier to setup and read and also the plugin hides the password to the server. That is a huge plus.

    Thanks in advance for the help.