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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Deploying using Azure pipelines

  • 1.  Deploying using Azure pipelines

    Posted 05/10/24 07:35 AM

    Hi everyone,

    I’m getting an error “[ERROR] [10 May 2024 09:24:11,798] (RepoAssetUtil.java:getRepositoryComposite:220)
    No Repository Objects for the type IS found on the Source Server Alias IS_REPO_DEV” while configuring azure pipelines this error comes during the create project step on Deployer below is my azure yaml file.

    Starter pipeline

    Start with a minimal pipeline that you can customize to build and deploy your code.

    Add steps that build, run tests, deploy, and more:

    YAML schema reference | Microsoft Learn

    parameters:

    • name: env
      displayName: Environment
      default: DEV
      values:

      • DEV
      • ZA_SIT
      • AF_SIT
      • MAH_PROD
      • SA_PROD
    • name: ser
      displayName: Server
      default: ESB
      values:

      • ESB
    • name: branch
      displayName: Checkout Branch
      default: Dev
      values:

      • Dev
      • sit_mah
      • sit_sa
      • prod_mah
      • prod_sa
    • name: packages
      displayName: Packages to Deploy:-
      Specify “none” to deploy all packages,
      To deploy multiple packages specify them “,” seperated
      default: none

    • name: connectors
      displayName: Connectors to Deploy:-
      To deploy multiple connectors specify them “,” seperated
      default: none

    • name: connvs
      displayName: Connectors Variable Substitution
      type: boolean
      default: false

    • name: checkDep
      displayName: Check serviceDependencies:-
      Specify “full” if “Packages to Deploy” is “none”
      default: ignore
      values:

      • full
      • partial
      • ignore

    trigger: none
    jobs:

    • job: Checkout
      variables:
      ${{ if eq(parameters.env, ‘DEV’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘ZA_SIT’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘AF_SIT’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘SA_PROD’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘MAH_PROD’) }}:
      Agent: onprem_webMethods
      pool:
      name: ‘ESB_webMethods’
      demands: Agent.Name -equals ${{ variables.Agent }}
      steps:

      • checkout: git://EBS/OnPrem_webMethods@${{ parameters.branch }}
        submodules: ‘recursive’
        clean: true
        path: workspace
        persistCredentials: true
      • bash: |
        BuildPath=“$(Agent.BuildDirectory)”
        echo “This is build location $BuildPath”
        echo “##vso[task.setvariable variable=buildPath;isOutput=true;]$BuildPath”
        name: setVariable
    • job: Build

      dependsOn: Checkout
      condition: succeeded(‘Checkout’)

      variables:
      buildPath: $[ dependencies.Checkout.outputs[‘setVariable.buildPath’] ]
      ${{ if eq(parameters.env, ‘DEV’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘ZA_SIT’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘AF_SIT’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘SA_PROD’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘MAH_PROD’) }}:
      Agent: onprem_webMethods

      pool:
      name: ‘ESB_webMethods’
      demands: Agent.Name -equals ${{ variables.Agent }}

      steps:

      • checkout: none
      • script: “/softwareag/wm107/common/AssetBuildEnvironment/bin/build.sh -Denable.build.IS=true -Dis.acdl.config.dir=$(buildPath)/workspace/IS/packages/acdl/config${{ parameters.ser }}/${{ parameters.env }}/ -Dbuild.source.dir=$(buildPath)/workspace/IS/packages/IS -Dbuild.output.dir=$(OutDir)”
        name: BuildScript
    • job: CreateProject

      dependsOn:

      • Checkout

      • Build
        condition: succeeded(‘Build’)
        variables:
        buildPath: $[ dependencies.Checkout.outputs[‘setVariable.buildPath’] ]
        ${{ if eq(parameters.env, ‘DEV’) }}:
        Agent: onprem_webMethods
        ${{ if eq(parameters.env, ‘ZA_SIT’) }}:
        Agent: onprem_webMethods
        ${{ if eq(parameters.env, ‘AF_SIT’) }}:
        Agent: onprem_webMethods
        ${{ if eq(parameters.env, ‘SA_PROD’) }}:
        Agent: onprem_webMethods
        ${{ if eq(parameters.env, ‘MAH_PROD’) }}:
        Agent: onprem_webMethods
        pool:
        name: ‘ESB_webMethods’
        demands: Agent.Name -equals ${{ variables.Agent }}
        steps:

      • checkout: none

      • bash: |
        chmod 764 $(buildPath)/workspace/IS/scripts/${{ parameters.ser }}/${{ parameters.env }}/buildAutomater.sh
        $(buildPath)/workspace/IS/scripts/${{ parameters.ser }}/${{ parameters.env }}/buildAutomater.sh -p=${{ parameters.packages }} -c=${{ parameters.connectors }} -f=$(buildPath)/workspace/IS/scripts/${{ parameters.ser }}/${{ parameters.env }}/IS_ProjectAutomator.xml -d=${{ parameters.checkDep }}
        name: BuildProjectAutomater

      • script: “/softwareag/wm107/IntegrationServer/instances/default/packages/WmDeployer/bin/projectautomatorUnix.sh $(buildPath)/workspace/IS/scripts/${{ parameters.ser }}/${{ parameters.env }}/IS_ProjectAutomator.xml”
        name: CreateDeployerProject

      • bash: |
        if [ ${{ parameters.connvs }} == False ]
        then
        echo “No Variable Substution”
        else
        cp $(buildPath)/workspace/IS/scripts/${{ parameters.ser }}/${{ parameters.env }}/_WMRepo_DepMap.vs /softwareag/wm107/IntegrationServer/instances/default/packages/WmDeployer/replicate/inbound/WMRepo_WMRepo_DepMap.vs
        /softwareag/wm107/IntegrationServer/instances/default/packages/WmDeployer/bin/Deployer.sh --import -varsub --vsFile WMRepo_WMRepo_DepMap.vs -map WMRepo_DepMap -project WMRepo -host $(${{ parameters.env }}_deployerServer) -port $(${{ parameters.env }}_deployerPort) -user $(${{ parameters.env }}_username) -pwd $(${{ parameters.env }}_pwd)
        fi
        name: ImportConnectorsVS

    • job: Deploy

      dependsOn: CreateProject
      condition: succeeded(‘CreateProject’)
      variables:
      ${{ if eq(parameters.env, ‘DEV’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘ZA_SIT’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘AF_SIT’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘SA_PROD’) }}:
      Agent: onprem_webMethods
      ${{ if eq(parameters.env, ‘MAH_PROD’) }}:
      Agent: onprem_webMethods
      pool:
      name: ‘ESB_webMethods’
      demands: Agent.Name -equals ${{ variables.Agent }}
      steps:

      • checkout: none
      • script: “/softwareag/wm107/IntegrationServer/instances/default/packages/WmDeployer/bin/Deployer.sh --deploy -dc WMRepo_DepCand -project WMRepo -host $(${{ parameters.env }}_deployerServer) -port $(${{ parameters.env }}_deployerPort) -user $(${{ parameters.env }}_username) -pwd $(${{ parameters.env }}_pwd)”
        name: DeployComposits

    This is my IS_ProjectAutomator file as well

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>




    Administrator





    FlatFile
    /home/wmadmin/CI_Assets/WMRepo/BUILD_DIR/
    false
    false





    5656
    Administrator

    false
    10.7
    false
    false
    Internal



    5555
    configadmin

    false
    10.7
    false
    false
    Internal



    5555
    Administrator

    false
    10.7
    false
    false
    Internal






    false
    true
    true
    true


    @CompositeName



    DEV_IS1
    DEV_IS2
    DEV_IS3




    I’m using webMethods 10.7 version. Can anyone please share your experience or thoughts on identifiying and fixing this issue .

    Regards,
    Bafana


    #webMethods


  • 2.  RE: Deploying using Azure pipelines

    Posted 05/17/24 06:22 AM

    I managed to fix this issue.


    #webMethods