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.


#TechXchangePresenter
 View Only
  • 1.  Jenkins CI CD for scheduled tasks

    Posted Thu March 12, 2020 03:42 AM

    Hi,
    Is there any way to use the CI CD pipeline as described in below projects to deploy scheduled tasks?

    I have made it working for IS packages. But not sure, how to put scheduled tasks configuration as part of the repo and ultimately deploy it to target server using the above jenkins pipeline?
    Thanks
    Mashrur


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Jenkins CI CD for scheduled tasks

    Posted Fri March 26, 2021 12:27 PM

    Scheduled tasks are stored in the DB and hence there is no easy way of doing this.
    I would recommend that instead of using persistent scheduled tasks, to instead have your packages set up everything themselves on startup. This makes your packages more autonomous and reduces unnecessary configuration.

    So, create a startup service in your package, which itself creates the scheduled task via the services pub.scheduler:addComplexTask or pub.scheduler:addRepeatingTask.

    For completion sake, and extra brownie points you could also create a shutdown service, to cancel the task.
    regards
    John
    Product Manager
    Integration & Microservice runtime


    #Integration-Server-and-ESB
    #webMethods