CLI Created Jobs Do Not Run

12 views
Skip to first unread message

Hilco Wijbenga

unread,
Oct 8, 2015, 6:09:08 PM10/8/15
to Jenkins Users
Hi all,

I am experiencing a strange issue. I am successfully creating new jobs using Jenkins CLI "create-job" + "enable-job" but these jobs are not triggered (they use "Build Periodically"). If I go in and change something through the UI (e.g., I change H/10 * * * * to H/10 * * * 1-7), then all of a sudden the build *does* get triggered. So it looks like something is not happening when calling "create-job" (or "enable-job"?) that *is* happening when creating a job through the UI. Any ideas?

1) After making a change in the UI, I do not see any (other) change in config.xml.
2) I noticed not all of the "last*Build" links exist for the jobs that had never run but creating them did not change anything. (Hey, I was grasping at straws.)

Cheers,
Hilco

Jenkins 1.631

Hilco Wijbenga

unread,
Oct 9, 2015, 12:47:50 AM10/9/15
to Jenkins Users
On 8 October 2015 at 15:09, Hilco Wijbenga <hilco.w...@gmail.com> wrote:
> I am experiencing a strange issue. I am successfully creating new jobs using
> Jenkins CLI "create-job" + "enable-job" but these jobs are not triggered
> (they use "Build Periodically"). If I go in and change something through the
> UI (e.g., I change H/10 * * * * to H/10 * * * 1-7), then all of a sudden the
> build *does* get triggered. So it looks like something is not happening when
> calling "create-job" (or "enable-job"?) that *is* happening when creating a
> job through the UI. Any ideas?

It is in fact not even necessary to change anything in the
configuration. If I simply click "configure" and then "Save", the job
is triggered normally from then on.
Reply all
Reply to author
Forward
0 new messages