I have setup jenkins declarative pipeline and I have setup choice parameters to run tests like
parameters {
choice choices: ['job_1', 'job_2'], description: 'Select job to run.', name: 'JOB_NAME'
gitParameter branchFilter: 'origin/.*', defaultValue: 'master', name: 'BRANCH', selectedValue: 'DEFAULT'
}
But I have lot of tests and I for second run I want to run only failed tests in pipeline. Is there way I can have choice parameter or checkbox or any other way to provide option to run only failed tests.