'How to schedule a Jenkins Job in a feature branch?

I am testing out a thing in my feature branch.

Currently I can't see the configure option in the feature branch to test this thing out by creating a timer.

Only options available are Up, Status, Changes, Build with Parameters, Full Stage View, Failure Scan Options.

// additionally would like to test what this produces when timer triggers the build.
echo "currentBuild.getBuildCauses()[0].shortDescription"

Trigger = currentBuild.getBuildCauses()[0].username
  
if (Trigger == "Timer") {
    jenkins.appendBuildDescription("Timer triggered this build")
}

If a timer triggers a job then I would like to print some information. Not sure if this is the correct condition but I would like to use a timer for only this feature branch.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source