Skip to main content

Update library codenow triggers

PUT 

/libraries/:libraryId/triggers

Update library codenow triggers

Request

Path Parameters

    libraryId stringrequired

    Possible values: non-empty

Header Parameters

    X-Codenow-Api-Key anyrequired

    CodeNOW API Key

Body

required

    triggers

    object[]

    required


    A list of objects representing all triggers currently defined for this library.

  • Array [

  • event string


    The event that will activate this trigger on every occurrence. The default value is push

    pipeline stringrequired

    Possible values: non-empty


    The pipeline used for building the library. It generally depends on the template (language, build tool, framework) the library is based on.

    enabled boolean


    A boolean flag indicating whether the trigger is active.
    If missing or set to false, the trigger will stay defined in the configuration file, but will not execute.

    branch stringrequired

    Possible values: non-empty


    The git branch(es) associated with the trigger. event occurrences on this branch will execute the trigger.
    You can specify either a single branch name or a glob pattern potentially matching multiple branches.

    type string


    The primary action executed by the trigger. For libraries, only release is a valid value, representing the release build.

    version

    object

    nullable


    Specifies how to determine the next version of the library.
    You can provide either your own version pattern or a branch pattern. If no value is provided, the patch version for the last major and minor path will be incremented.

    pattern string


    The semver pattern used for versioning the library builds.
    Use pattern with wildcards to specify release version (? latest, + increment, i.e. 1.?.+ will increment patch version for the latest version where major path is 1).

    branchPattern string

    Possible values: non-empty


    The release version will be determined from the branch name following this pattern.
    ${MAJOR}, ${MINOR} can be used as placeholders. i.e release/${MAJOR}.${MINOR} for release/1.5 will creates 1.5.0, 1.5.1, etc builds versions.

  • ]

Responses

Library triggers were updated.

Schema

    status stringrequired

    Possible values: non-empty

Loading...