Tips, Tricks and Code Tips, Tricks and Code

Designer,...

Automated build and deployment using Jenkins, ABE, Deployer

Created by Srikanth Prathipati, last modified on Fri, 23 Aug 2019, 14:18

The document is a summary on how to configure automated build and deployment environment with any VCS supported by webMethods using a CI Tool (Jenkins), ABE, Deployer.

Check out the attachments below:


8 Attachments
18752 Views
Average (1 Vote)
Comments
Kasi Venkat Rama Vijay Kumar Alla
A good document to help in using the Jenkins but it will be nice to include about the regression test and what if it fails etc
Posted on 12/18/15 5:39 AM.
Hello Ram,

I agree with you. What do you prefer for this? WmTestSuite?
Posted on 12/18/15 5:43 AM.
Very Informative.
In our project we have all IS servers, Jenkins, ABE on linux machine.
I'm trying to use the same build.xml on our linux, but when run thr' Jenkins we get below error. It could be because of 'if-else' syntax which is different for Linux. How should build.xml look when it resides on linux machine. Tried few stuff, but no luck. Any pointers to this
Error:
BUILD FAILED
/opt/softwareag/common/AssetBuildEnvironment/master_build/build.xml:18: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Posted on 8/4/16 6:42 AM.
Hello Monica,

You can use the same build file in all the environments. Whats is webMethods version you are trying?
Posted on 8/4/16 6:47 AM in reply to Monica Sheshanarayana.
Posted on 8/4/16 6:53 AM.
Hmm, let me share the 9.10 build file that is working for me....
Posted on 8/4/16 6:55 AM in reply to Monica Sheshanarayana.
Try the build_9_10.xml file Monica...!
Posted on 8/4/16 6:57 AM in reply to Monica Sheshanarayana.
Thanks Srikanth for sharing the build.xml.
I tried the one which you shared just now.
When i ran the Jenkins it gave me below error:
[master_build] $ /opt/softwareag/common/AssetBuildEnvironment/ant/bin/ant -file build.xml build
Buildfile: /opt/softwareag/common/AssetBuildEnvironment/master_build/build.xml
[native2ascii] Converting 1 file from /opt/softwareag/common/AssetBuildEnvironment/master_build to /opt/softwareag/common/AssetBuildEnvironment/master_build
[native2ascii] java.lang.Exception: /opt/softwareag/common/AssetBuildEnvironment/master_build/build.properties.ascii could not be written.
I removed .ascii from file and tried again, its same error for 'if'

BUILD FAILED
/opt/softwareag/common/AssetBuildEnvironment/master_build/build.xml:22: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Currently i have included only 2 targets - build, createbuild. If successful then i will add few more.
Please suggest if I'm out anything
Posted on 8/4/16 7:22 AM.
2 targets - build and createProject.
Posted on 8/4/16 7:23 AM.
Does jenkins have access to ABE folder?
Posted on 8/4/16 7:24 AM in reply to Monica Sheshanarayana.
Currently it is full access for all for ABE
Posted on 8/4/16 7:29 AM.
Thanks Srikanth for your quick responses. Now 'IF' error is resolved after including
<taskdef classpath = "lib/ant-contrib.jar" resource="net/sf/antcontrib/antlib.xml"/>
Posted on 8/4/16 8:01 AM.
Abhijeet Chaudhari
Hi,
Can you please share build-source-checkout.xml file
Posted on 11/24/16 1:41 PM.
Hi Srikanth,
I am doing POC for Jenkin in my local system now as it is planned in our project to use Jenkin,SVN and ABE in webMethods 9.12 environment.I am refering to the PDF uploaded in this link which is really very helpful.
I already set up build.properties,build.xml and automator.xml file in ABE installation path and wmDeployer/config paths.Next using jenkin url,I tried to configure source code management section by providing the svn url .But it is showing error as "Unable to access the repository" .Please suggest if missed anything .

With Regards
Sweta
Posted on 8/31/17 3:19 PM.
Dear Swetha,

I can see two possibilities, either Jenkins server does not have access to your version control system or else you forgot to map the credentials to checkout the codebase from version control system.
Posted on 8/31/17 3:59 PM.
Hi Srikanth,
Thanks for sharing your inputs .
I already successfully checked out codebase using svn from designer .
Even same svn credentials are mapped in Jenkin portal.
Below is the link configured in my local designer while creating local development project
svn://localhost:3690/wmSVNrepo
While configuring source code management section using Jenkin ,below link is provided as subversion repository url .
http://localhost:3690/wmSVNrepo.
Additionally,Subversion plug-in is also installed in Jenkin.
Could you please update me if anything else needs to be verified apart from above tasks to confirm vcs(svn) and Jenkin connectivity or mapping credentials to checkout from vcs.
With Regards
Sweta
Posted on 9/1/17 8:34 AM.
Hello Swetha,

Can you share the screenshot/error completely?
Posted on 9/1/17 8:46 AM.
PFA screenshot( jenkinError.png )

With Regards
Sweta
Posted on 9/1/17 9:23 AM in reply to Srikanth Prathipati.
PFA screenshot( jenkinError.png )

With Regards
Sweta
Posted on 9/1/17 9:23 AM in reply to Srikanth Prathipati.
There was a typo in the above screenshot.
PFA correct jenkin error screenshot jenkinError_Latest.png
Posted on 9/1/17 9:55 AM in reply to Swetapadma Mohapatra.