I want to create a job based on the result of previous stage job script execution. For instance,
variables:
JOB2_CREATE=0
job_1:
script:
- JOB2_CREATE=1
# job 2 should only be created iff JOB2_CREATE is 1 which should get updated in job1.
job_2:
on:
variables:
$JOB2_CREATE == 1
script:
- echo "job2 created and ran successfully"
Is this possible, is there any alternative to create a job based on previous job’s result.
I would appreciate the help !