Kubernetes plugin

82 views
Skip to first unread message

李立

unread,
Apr 5, 2017, 3:54:50 AM4/5/17
to Jenkins Developers
I used kubernetes plugin to build a pipeline job, but it need at least 10s to create pod since build job. Why? 

Carlos Sanchez

unread,
Apr 5, 2017, 4:01:09 AM4/5/17
to Jenkins Developers
That's the way the cloud api works, you can try setting the system property hudson.slaves.NodeProvisioner.initialDelay=0

On Wed, Apr 5, 2017 at 9:54 AM, 李立 <dylan...@foxmail.com> wrote:
I used kubernetes plugin to build a pipeline job, but it need at least 10s to create pod since build job. Why? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/9cb3f4f7-06ba-43ba-8206-1f60b451a8d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

李立

unread,
Apr 5, 2017, 9:40:26 AM4/5/17
to Jenkins Developers

Thanks very much for your reply ! But I cann't find how to set hudson.slaves.NodeProvisioner.initialDelay in user interface. Do I need to alter the source code for Jenkins?
在 2017年4月5日星期三 UTC+8下午3:54:50,李立写道:

Carlos Sanchez

unread,
Apr 5, 2017, 10:38:39 AM4/5/17
to Jenkins Developers
On Wed, Apr 5, 2017 at 3:40 PM, 李立 <dylan...@foxmail.com> wrote:

Thanks very much for your reply ! But I cann't find how to set hudson.slaves.NodeProvisioner.initialDelay in user interface. Do I need to alter the source code for Jenkins?

在 2017年4月5日星期三 UTC+8下午3:54:50,李立写道:
I used kubernetes plugin to build a pipeline job, but it need at least 10s to create pod since build job. Why? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.

李立

unread,
Apr 6, 2017, 4:51:19 AM4/6/17
to jenkin...@googlegroups.com
I'm waiting for your reply, Thank you very much!

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/Knw62IqlsLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALHFn6NhzQQ2zi2i%3DYu3wJJvqE7iGdX6V%3DhBDAthYPQP1FpCyQ%40mail.gmail.com.

Mark Waite

unread,
Apr 6, 2017, 7:42:39 AM4/6/17
to jenkin...@googlegroups.com
Carlos' s reply was the link to the web page which describes how to set system properties.  It provides an example of setting a global property from the Java command line that starts Jenkins.


Mark Waite



On Thu, Apr 6, 2017 at 2:51 AM 李立 <liliyoux...@gmail.com> wrote:
I'm waiting for your reply, Thank you very much!

2017-04-05 22:38 GMT+08:00 Carlos Sanchez <car...@apache.org>:
On Wed, Apr 5, 2017 at 3:40 PM, 李立 <dylan...@foxmail.com> wrote:

Thanks very much for your reply ! But I cann't find how to set hudson.slaves.NodeProvisioner.initialDelay in user interface. Do I need to alter the source code for Jenkins?

 
在 2017年4月5日星期三 UTC+8下午3:54:50,李立写道:
I used kubernetes plugin to build a pipeline job, but it need at least 10s to create pod since build job. Why? 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/Knw62IqlsLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAOL2UNUt_jsXag1JT00f97b6R8L5VWV1_TcXjk58FY08DKw_LQ%40mail.gmail.com.

李立

unread,
Apr 6, 2017, 9:47:45 AM4/6/17
to jenkin...@googlegroups.com
OK, I got it, Thank you for your answer !

2017-04-05 22:38 GMT+08:00 Carlos Sanchez <car...@apache.org>:

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/Knw62IqlsLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALHFn6NhzQQ2zi2i%3DYu3wJJvqE7iGdX6V%3DhBDAthYPQP1FpCyQ%40mail.gmail.com.

李立

unread,
Apr 7, 2017, 8:05:14 AM4/7/17
to jenkin...@googlegroups.com
I set the properties of hudson.slaves.NodeProvisioner.initialDelay=0, but it doesn't work, It still  spend about 10 seconds. But I find it just build pipeline need so long time and it's very fast when I build free style job. I am very confused. 
Reply all
Reply to author
Forward
0 new messages