-
Bug
-
Resolution: Fixed
-
Minor
-
None
Hi, first of all sorry if this an allready known issue or a stupid config by myself.
Since i updated from the kubernetes plugin 1.2.1 to 1.3.1 (skipped 1.3) i face the following: doing an sh outside any container closure ( aka jnlp) the sh (simple ls in my example) is excuted instantly. The moment i am inside the container closure it seems to wait about one minute before it executes the sh, for every sh within any container.
Switching back to 1.2.1 helped me.
using these example calls:
with this example configuration ... def sdf = new java.text.SimpleDateFormat("MM/dd/yyyy HH:mm:ss") println "#before# "+sdf.format(new Date()) sh 'ls -lna' println "#after# "+sdf.format(new Date()) println "#before# "+sdf.format(new Date()) sh 'ls -lna' println "#after# "+sdf.format(new Date()) container('jnlp') { println "#before# "+sdf.format(new Date()) sh 'ls -lna' println "#after# "+sdf.format(new Date()) println "#before# "+sdf.format(new Date()) sh 'ls -lna' println "#after# "+sdf.format(new Date()) } ...
I get the follwoing output
[Pipeline] echo
{color:#14892c}#before# 03/06/2018 14:36:42{color}
[Pipeline] sh
[ces_simple-scheduler_master-UDJYA3VVM57YVGCAAPCPO6GWY2U32LN2MTKQTUHD3EANVLJ5HO4Q] Running shell script
+ ls -lna
total 8
drwxr-xr-x 2 10000 999 4096 Mar 6 14:36 .
drwxr-xr-x 4 10000 999 4096 Mar 6 14:36 ..
[Pipeline] echo
{color:#14892c}#after# 03/06/2018 14:36:44{color}
[Pipeline] echo
{color:#14892c}#before# 03/06/2018 14:36:44{color}
[Pipeline] sh
[ces_simple-scheduler_master-UDJYA3VVM57YVGCAAPCPO6GWY2U32LN2MTKQTUHD3EANVLJ5HO4Q] Running shell script
+ ls -lna
total 8
drwxr-xr-x 2 10000 999 4096 Mar 6 14:36 .
drwxr-xr-x 4 10000 999 4096 Mar 6 14:36 ..
[Pipeline] echo
{color:#14892c}#after# 03/06/2018 14:36:44{color}
[Pipeline] container
[Pipeline] \{
[Pipeline] echo
{color:#ff0000}#before# 03/06/2018 14:36:44{color}
[Pipeline] sh
[ces_simple-scheduler_master-UDJYA3VVM57YVGCAAPCPO6GWY2U32LN2MTKQTUHD3EANVLJ5HO4Q] Running shell script
+ ls -lna
total 8
drwxr-xr-x 2 10000 999 4096 Mar 6 14:36 .
drwxr-xr-x 4 10000 999 4096 Mar 6 14:36 ..
[Pipeline] echo
{color:#ff0000}#after# 03/06/2018 14:38:01{color}
[Pipeline] echo
{color:#ff0000}#before# 03/06/2018 14:38:01{color}
[Pipeline] sh
[ces_simple-scheduler_master-UDJYA3VVM57YVGCAAPCPO6GWY2U32LN2MTKQTUHD3EANVLJ5HO4Q] Running shell script
+ ls -lna
total 8
drwxr-xr-x 2 10000 999 4096 Mar 6 14:36 .
drwxr-xr-x 4 10000 999 4096 Mar 6 14:36 ..
[Pipeline] echo
{color:#ff0000}#after# 03/06/2018 14:39:18{color}
[Pipeline] }
[Pipeline] // container