Issue
I'm trying to run only Stage C in pipeline every night based on the parameters. But pipeline is throwing me Invalid trigger type "parameterizedCron" error. Below is my pipeline script. Please help what could be the issue. Also my pipeline is not triggering via cron job i need to trigger manually.
pipeline {
agent any
}
parameters {
choice(
name: 'ENV',
choices: [ 'uat', 'perf' ],
)
booleanParam(
name: 'RUN',
defaultValue: true
)
}
triggers {
parameterizedCron('''
17 14 * * * %RUN=true;ENV=uat
''')
}
stages {
stage ('A') {
}
stage ('B') {
}
stage('C') {
when {
expression { env.RUN || env.ENV == 'uat' }
}
## RUN THIS STAGE
}
}
Solution
Have you installed and enabled the plugin?
If you freshly installed the plugin try restarting Jenkins.
Answered By - ycr
Answer Checked By - Cary Denson (JavaFixing Admin)