set pipelineTriggers in Jenkinsfile to set 'Trigger builds remotely (e.g., from scripts)'

Viewed 141

I have a Jenkinsfile and I want to set a pipelineTrigger property for my stage 'setup parameters'

#! /usr/bin/env groovy
pipeline {
    agent any
    stages {
        stage('setup parameters'){
            steps{
                script{
                    properties([
                        parameters([
                            string(name: 'payload', defaultValue: '')
                        ]),
                        pipelineTriggers(])

                    ])

                }
            }
        }

What i'm trying to do is after the first attempted run of the Job, the following checkbox should be checked with token filled out.

enter image description here

When I have looked for the pipeline syntax, it does not list this as one of the trigger options.

Thanks!

1 Answers
Related