IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

CICD in webMethods using Github/Bitbucket and Jenkins

  • 1.  CICD in webMethods using Github/Bitbucket and Jenkins

    Posted Wed May 17, 2023 06:25 AM
    1. I am trying to establish cicd in my current project. Through Local service Development, we are going to implement it. We are using GIT as a repository and Jenkins as a pipeline tool.

    a. We have created a package and able to push into Git. Able to commit, merge.
    b. After that we have set up the connectivity between Git and Jenkins successfully.
    c. Created the Jenkins pipeline. After initiate the Jenkins process, process getting failed in the Build step as mentioned with error

    Error:

    Started by user Rajarshi Mitra
    Obtained Jenkinsfile.win from git (git repo)
    [Pipeline] Start of Pipeline
    [Pipeline] node
    Running on Jenkins in C:\ProgramData\Jenkins.jenkins\workspace\cicdWebMethodsDemo
    [Pipeline] {
    [Pipeline] stage
    [Pipeline] { (Declarative: Checkout SCM)
    [Pipeline] checkout
    The recommended git tool is: NONE
    No credentials specified
    Cloning the remote Git repository
    Cloning repository (git repo)

    C:\Program Files\Git\bin\git.exe init C:\ProgramData\Jenkins.jenkins\workspace\cicdWebMethodsDemo # timeout=10
    Fetching upstream changes from (git repo)
    C:\Program Files\Git\bin\git.exe --version # timeout=10
    git --version # ‘git version 2.40.0.windows.1’
    C:\Program Files\Git\bin\git.exe fetch --tags --force --progress – (git repo)+refs/heads/:refs/remotes/origin/ # timeout=10
    C:\Program Files\Git\bin\git.exe config remote.origin.url (git repo) # timeout=10
    C:\Program Files\Git\bin\git.exe config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
    Avoid second fetch
    C:\Program Files\Git\bin\git.exe rev-parse “refs/remotes/origin/master^{commit}” # timeout=10
    Checking out Revision 9cf0d47cef0343089f1acf0845d8597a0709df91 (refs/remotes/origin/master)
    C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
    C:\Program Files\Git\bin\git.exe checkout -f 9cf0d47cef0343089f1acf0845d8597a0709df91 # timeout=10
    Commit message: “Update build.xml”
    C:\Program Files\Git\bin\git.exe rev-list --no-walk 9cf0d47cef0343089f1acf0845d8597a0709df91 # timeout=10
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] withEnv
    [Pipeline] {
    [Pipeline] stage
    [Pipeline] { (Build)
    [Pipeline] bat

    C:\ProgramData\Jenkins.jenkins\workspace\cicdWebMethodsDemo>C:/SoftwareAG/common/lib/ant/bin/ant -DSAGHome=C:/SoftwareAG -DSAG_CI_HOME=C:/Users/e24780rm/CI_Scripts/sagdevops-ci-assets -DprojectName=cicdWebMethodsDemo build
    Buildfile: C:\ProgramData\Jenkins.jenkins\workspace\cicdWebMethodsDemo\build.xml

    build:

    initSAGHome:

    initDeployerInstallationPath:

    initDeployerHost:

    initDeployerPort:

    initDeployerUsername:

    initDeployerPassword:

    initSystemProperties:

    initProjcetName:

    initBuildOutputDir:

    initRepositoryName:

    initDeployerProjectDefinition:

    initMandatoryProperties:

    initISProjectsDir:

    initISConfigDir:

    initBPMProjectsDir:

    initMWSProjectsDir:

    initRulesProjectsDir:

    initUMProjectDir:

    initTestPackageNamePattern:

    initJenkinsReportDir:

    initOptionalProperties:

    initProject:

    cleanupBuild:

    prepareABEproperties:
    [copy] Copying 1 file to C:\SoftwareAG\common\AssetBuildEnvironment\master_build

    buildWM:
    [echo] invoke ABE Build
    [native2ascii] Converting 1 file from C:\SoftwareAG\common\AssetBuildEnvironment\master_build to C:\SoftwareAG\common\AssetBuildEnvironment\master_build
    Trying to override old definition of task shellscript
    Trying to override old definition of task propertycopy
    Trying to override old definition of task pathtofileset
    Trying to override old definition of task remoteant
    Trying to override old definition of task runtarget
    Trying to override old definition of task assert
    Trying to override old definition of task propertyregex
    Trying to override old definition of task math
    Trying to override old definition of task trycatch
    Trying to override old definition of task antserver
    Trying to override old definition of task antcallback
    Trying to override old definition of task compilewithwalls
    Trying to override old definition of task outofdate
    Trying to override old definition of task osfamily
    Trying to override old definition of task stopwatch
    Trying to override old definition of task throw
    Trying to override old definition of task antclipse
    Trying to override old definition of task urlencode
    Trying to override old definition of task bool
    Trying to override old definition of task timestampselector
    Trying to override old definition of task foreach
    Trying to override old definition of task if
    Trying to override old definition of task propertyselector
    Trying to override old definition of task sortlist
    Trying to override old definition of task antfetch
    Trying to override old definition of task post
    Trying to override old definition of task for
    Trying to override old definition of task forget
    Trying to override old definition of task limit
    Trying to override old definition of task switch
    Trying to override old definition of task var
    Trying to override old definition of task inifile
    Trying to override old definition of task verifydesign
    Trying to override old definition of datatype isgreaterthan
    Trying to override old definition of datatype islessthan
    Trying to override old definition of datatype ispropertyfalse
    Trying to override old definition of datatype ispropertytrue

    initLog:

    build:
    [echo] Apache Ant™ version 1.10.1 compiled on February 2 2017

    createNewBuildNumber:

    createBuildNumber:
    [propertyfile] Updating property file: C:\SoftwareAG\common\AssetBuildEnvironment\master_build\build.number

    createOutputDir:
    [echo] Creating directory C:\ProgramData\Jenkins.jenkins\workspace\cicdWebMethodsDemo/target/cicdWebMethodsDemo/build
    [mkdir] Created dir: C:\ProgramData\Jenkins.jenkins\workspace\cicdWebMethodsDemo\target\cicdWebMethodsDemo\build
    [echo] Started Integration Server Build…

    buildIS:

    validate:

    build:

    iterate_multi_project_folders:

    build_projects:

    generate-composites:
    [java] java.lang.ExceptionInInitializerError
    [java] at com.ibm.icu.impl.ICUResourceBundle.(ICUResourceBundle.java:464)
    [java] at com.ibm.icu.util.ULocale.getAvailableLocales(ULocale.java:993)
    [java] at com.softwareag.g11n.util.iContext.(iContext.java:216)
    [java] at com.wm.lang.ns.NSService.init(NSService.java:160)
    [java] at com.wm.app.b2b.server.BaseService.init(BaseService.java:224)
    [java] at com.wm.lang.ns.NSService.(NSService.java:137)
    [java] at com.wm.app.b2b.server.BaseService.(BaseService.java:174)
    [java] at com.wm.app.b2b.server.FlowSvcImpl.(FlowSvcImpl.java:40)
    [java] at com.wm.app.b2b.server.FlowServiceFactory.createFromNodeDef(FlowServiceFactory.java:15)
    [java] at com.wm.app.b2b.server.PackageManager.createNode(PackageManager.java:2439)
    [java] at com.wm.app.b2b.server.PackageManager.getNode(PackageManager.java:1509)
    [java] at com.wm.app.b2b.server.PackageManager.getFileSystemNodes(PackageManager.java:1486)
    [java] at com.wm.app.b2b.server.PackageManager.loadServices(PackageManager.java:1038)
    [java] at com.wm.app.b2b.server.PackageManager.loadServices(PackageManager.java:1005)
    [java] at com.wm.app.b2b.server.PackageManager.processPackageManifest(PackageManager.java:962)
    [java] at com.wm.app.b2b.server.PackageManager.loadPackage(PackageManager.java:761)
    [java] at com.wm.app.b2b.server.PackageManager.loadPackage(PackageManager.java:643)
    [java] at com.wm.app.b2b.server.PackageManager.loadPackage(PackageManager.java:405)
    [java] at com.wm.app.b2b.server.packageLoader.SerialPackageLoader.loadPackages(SerialPackageLoader.java:268)
    [java] at com.wm.app.b2b.server.PackageManager.loadPackages(PackageManager.java:378)
    [java] at com.wm.app.b2b.server.PackageManager.init(PackageManager.java:299)
    [java] at com.wm.app.b2b.server.PackageManager.init(PackageManager.java:169)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.exportDesignTimeAssets(SolutionAssembler.java:121)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.export(SolutionAssembler.java:297)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.main(SolutionAssembler.java:403)
    [java] Caused by: java.lang.IllegalArgumentException: Invalid version number: Version number may be negative or greater than 255
    [java] at com.ibm.icu.util.VersionInfo.getInstance(VersionInfo.java:191)
    [java] at com.ibm.icu.impl.ICUDebug.getInstanceLenient(ICUDebug.java:65)
    [java] at com.ibm.icu.impl.ICUDebug.(ICUDebug.java:69)
    [java] … 25 more
    [java] java.lang.NoClassDefFoundError: Could not initialize class com.softwareag.g11n.util.iContext
    [java] at com.wm.lang.ns.NSService.init(NSService.java:160)
    [java] at com.wm.app.b2b.server.BaseService.init(BaseService.java:224)
    [java] at com.wm.lang.ns.NSService.(NSService.java:137)
    [java] at com.wm.app.b2b.server.BaseService.(BaseService.java:174)
    [java] at com.wm.app.b2b.server.FlowSvcImpl.(FlowSvcImpl.java:40)
    [java] at com.wm.app.b2b.server.FlowServiceFactory.createFromNodeDef(FlowServiceFactory.java:15)
    [java] at com.wm.app.b2b.server.PackageManager.createNode(PackageManager.java:2439)
    [java] at com.wm.app.b2b.server.PackageManager.getNode(PackageManager.java:1509)
    [java] at com.wm.app.b2b.server.PackageManager.getFileSystemNodes(PackageManager.java:1486)
    [java] at com.wm.app.b2b.server.PackageManager.loadServices(PackageManager.java:1038)
    [java] at com.wm.app.b2b.server.PackageManager.loadServices(PackageManager.java:1005)
    [java] at com.wm.app.b2b.server.PackageManager.processPackageManifest(PackageManager.java:962)
    [java] at com.wm.app.b2b.server.PackageManager.loadPackage(PackageManager.java:761)
    [java] at com.wm.app.b2b.server.PackageManager.loadPackage(PackageManager.java:643)
    [java] at com.wm.app.b2b.server.PackageManager.loadPackage(PackageManager.java:405)
    [java] at com.wm.app.b2b.server.packageLoader.SerialPackageLoader.loadPackages(SerialPackageLoader.java:268)
    [java] at com.wm.app.b2b.server.PackageManager.loadPackages(PackageManager.java:378)
    [java] at com.wm.app.b2b.server.PackageManager.init(PackageManager.java:299)
    [java] at com.wm.app.b2b.server.PackageManager.init(PackageManager.java:169)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.exportDesignTimeAssets(SolutionAssembler.java:121)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.export(SolutionAssembler.java:297)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.main(SolutionAssembler.java:403)
    [java] Exception in thread “main” java.lang.NoClassDefFoundError: Could not initialize class com.ibm.icu.impl.ICUDebug
    [java] at com.ibm.icu.impl.NormalizerDataReader.(NormalizerDataReader.java:300)
    [java] at com.ibm.icu.impl.NormalizerImpl.(NormalizerImpl.java:288)
    [java] at com.ibm.icu.impl.NormalizerImpl.(NormalizerImpl.java:35)
    [java] at com.ibm.icu.text.Normalizer.compose(Normalizer.java:873)
    [java] at com.ibm.icu.text.Normalizer$NFKCMode.normalize(Normalizer.java:469)
    [java] at com.ibm.icu.text.Normalizer.normalize(Normalizer.java:1111)
    [java] at com.wm.util.text.IBMNormalizer.normalize(IBMNormalizer.java:32)
    [java] at com.wm.util.text.IBMNormalizer.normalize(IBMNormalizer.java:21)
    [java] at com.wm.util.EncUtil.normalize(EncUtil.java:762)
    [java] at com.wm.app.b2b.server.deployer.processors.DesignTimeAssetsDeployerImpl.createManifestEntries(DesignTimeAssetsDeployerImpl.java:204)
    [java] at com.wm.app.b2b.server.deployer.processors.DesignTimeAssetsDeployerImpl.createManifestEntries(DesignTimeAssetsDeployerImpl.java:117)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.exportDesignTimeAssets(SolutionAssembler.java:163)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.export(SolutionAssembler.java:297)
    [java] at com.wm.app.b2b.server.deployer.SolutionAssembler.main(SolutionAssembler.java:403)

    BUILD FAILED
    C:\ProgramData\Jenkins.jenkins\workspace\cicdWebMethodsDemo\build.xml:27: The following error occurred while executing this line:
    C:\Users\e24780rm\CI_Scripts\sagdevops-ci-assets\buildCallABE.xml:25: The following error occurred while executing this line:
    C:\SoftwareAG\common\AssetBuildEnvironment\master_build\build.xml:270: The following error occurred while executing this line:
    C:\SoftwareAG\common\AssetBuildEnvironment\master_build\build.xml:82: The following error occurred while executing this line:
    C:\SoftwareAG\common\AssetBuildEnvironment\IS\build.xml:112: The following error occurred while executing this line:
    C:\SoftwareAG\common\AssetBuildEnvironment\IS\build.xml:140: The following error occurred while executing this line:
    C:\SoftwareAG\common\AssetBuildEnvironment\IS\build.xml:165: The following error occurred while executing this line:
    C:\SoftwareAG\common\AssetBuildEnvironment\IS\build.xml:185: Java returned: 1

    Total time: 33 seconds
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Deploy)
    Stage “Deploy” skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] stage
    [Pipeline] { (Test)
    Stage “Test” skipped due to earlier failure(s)
    [Pipeline] }
    [Pipeline] // stage
    [Pipeline] }
    [Pipeline] // withEnv
    [Pipeline] }
    [Pipeline] // node
    [Pipeline] End of Pipeline
    ERROR: script returned exit code 1
    Finished: FAILURE

    I am following the mentioned link for the set up

    Demo: Continuous Integration with webMethods

    Unlisted

    1. In the above video, they try to deploy in the one target server. Please let me know if we want to deploy multiple target server, what we need to do? In the CI_Assets/systemproperties(attached) if we can add another target server details. It will work? Or need to do something else?

    2. After resolve the above, we need to set up the same process with BitBucket and Jenkins. Is this the same process? Please suggest and provide some link if you have.


    #webMethods
    #Integration-Server-and-ESB