App Connect

 View Only
  • 1.  Creating bar file from source code in tekton pipeline

    IBM Champion
    Posted Mon February 22, 2021 06:42 AM
    Hi,

    I am trying to build a tekton pipeline for build and deployment of ACE bar file/image into CP4I environment. I can able to create image from bar file and deploy using integration server manifest yaml file. But struggling to create bar file from source code from Git in Tekton task. Is there a reference or information available on how to create bar file from source code in Tekton pipelines?

    ------------------------------
    Thanks,
    Santhosh Ramanathan
    ------------------------------


  • 2.  RE: Creating bar file from source code in tekton pipeline

    Posted Tue February 23, 2021 02:07 AM
    Hello,

    I have made a small example here:

    https://github.com/prichelle/pipeline-ace

    ------------------------------
    Pierre Richelle
    IBM Hybrid Cloud Integration Specialists
    IBM
    +32474681892
    ------------------------------



  • 3.  RE: Creating bar file from source code in tekton pipeline

    IBM Champion
    Posted Wed February 24, 2021 12:21 AM
    Hi Pierre,

    Thanks for the response. I created a pipeline using the code which you shared, Pipeline tasks are showing success and imagestream is available,  but there are no pods are getting created for the integration Server.
    Attaching the screenshot of pipeline, pods and platform navigator view. Could you please advise what is wrong .

    ------------------------------
    Thanks,
    Santhosh Ramanathan
    ------------------------------



  • 4.  RE: Creating bar file from source code in tekton pipeline

    Posted Wed February 24, 2021 02:08 AM
    Hello,

    Can you share the status of the integration sever as well as the events ?

    oc get integrationserver <yourIS>
    oc describe integrationserver <yourIS>
    oc get event -n <yourNS>

    ------------------------------
    Pierre Richelle
    IBM Hybrid Cloud Integration Specialists
    IBM
    +32474681892
    ------------------------------



  • 5.  RE: Creating bar file from source code in tekton pipeline

    IBM Champion
    Posted Wed February 24, 2021 04:26 AM

    Hi,

    Attaching the command outputs

    1. oc-describe-is.txt -> output of oc describe pingserver-from-pipeline
    2. oc-getevent.txt -> output of oc get event -n aceistio3 | grep 'ace-cicd\|pingserver'
    3. oc-get-integrationserver.png -> output of oc get pingserver-from-pipeline



    ------------------------------
    Thanks,
    Santhosh Ramanathan
    ------------------------------

    Attachment(s)

    txt
    oc-describe-is.txt   7 KB 1 version
    txt
    oc-getevent.txt   11 KB 1 version


  • 6.  RE: Creating bar file from source code in tekton pipeline

    Posted Wed February 24, 2021 05:00 AM

    Hello,

    as you can see in the integration server describe, there is an issue with the license.
    Please refer here to have the right license:
    https://www.ibm.com/support/knowledgecenter/SSTTDS_11.0.0/com.ibm.ace.icp.doc/certc_licensingreference.html
    If you haven't installed the cloud pak navigator you might need to use another licence

      License:
        Accept:   true
        License:  L-APEH-BPUCJK
        Use:      CloudPakForIntegrationNonProduction
    


    ------------------------------
    Pierre Richelle
    IBM Hybrid Cloud Integration Specialists
    IBM
    +32474681892
    ------------------------------



  • 7.  RE: Creating bar file from source code in tekton pipeline

    IBM Champion
    Posted Thu February 25, 2021 04:16 AM
    Hi Pierre,

    Apparently there was a problem in one of the worker node in my cluster which restricted the deployment of applications in the cp4i cluster. After resolving it, I can now able to build and deploy the bar file using the pipeline code you shared. Thanks a ton for sharing the tekton script. It is very helpful.

    ------------------------------
    Thanks,
    Santhosh Ramanathan
    ------------------------------



  • 8.  RE: Creating bar file from source code in tekton pipeline

    Posted Wed February 24, 2021 04:31 AM
    Hello,

     There's a demo pipeline on ot4i that shows this sort of thing, using various tools (ant, maven, Jenkins, TravisCI, etc) to build applications and libraries, test them, and then deploy to the IBM Cloud Kubernetes service.

     The repo is at https://github.com/ot4i/ace-demo-pipeline and there's a branch with Tekton configuration in it here https://github.com/ot4i/ace-demo-pipeline/tree/demo-pipeline-21-02/tekton that works with the current IKS (hopefully the branch will be merged soon). The demo application is mostly there to show how to build pipelines, but the whole setup can be run for free using IBM Cloud resources.

     Hope this helps!


  • 9.  RE: Creating bar file from source code in tekton pipeline

    IBM Champion
    Posted Thu February 25, 2021 04:29 AM
    Hi Trevor,

    Thanks for the reference. It is helpful.
    Since I am using CP4I environment, the link shared by Pierre Richelle (https://github.com/prichelle/pipeline-ace) was handy to deploy the ACE bar file.

    ------------------------------
    Thanks,
    Santhosh Ramanathan
    ------------------------------