• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • groovy-plugin
    • None
    • Windows 7

      I tried to configure auto install(see attached), didn't work - did not try to install and did not find groovy.
      i installed groovy myself on the node, added it to the path on the node, deleted the node from jenkins and configured again, ran the job, saw the groovy on the path variable in the job in jenkins, still it cannot find groovy.
      Groovy works fine on the node but when i run jenkins it cannot find it..

      P.S. when i run groovy in jenkins in "execute windows batch command" it finds it, the problem is with "execute groovy script"

      I have no more ideas, please help.

          [JENKINS-29422] Cannot run program "groovy"

          Gilad Baruchian created issue -
          Gilad Baruchian made changes -
          Description Original: I tried to configure auto install(see attached), didn't work - did not try to install and did not find groovy.
          i installed groovy myself on the node, added it to the path on the node, deleted the node from jenkins and configured again, ran the job, saw the groovy on the path variable in the job in jenkins, still it cannot find groovy.
          Groovy works fine on the node but when i run jenkins it cannot find it..

          I have no more ideas, please help.
          New: I tried to configure auto install(see attached), didn't work - did not try to install and did not find groovy.
          i installed groovy myself on the node, added it to the path on the node, deleted the node from jenkins and configured again, ran the job, saw the groovy on the path variable in the job in jenkins, still it cannot find groovy.
          Groovy works fine on the node but when i run jenkins it cannot find it..

          P.S. when i run groovy in jenkins in "execute windows batch command" it finds it, the problem is with "execute groovy script"

          I have no more ideas, please help.
          Daniel Beck made changes -
          Component/s New: groovy-plugin [ 15549 ]
          Component/s Original: core [ 15593 ]
          Assignee New: vjuranek [ vjuranek ]

          Daniel Beck added a comment -

          I tried to configure auto install(see attached), didn't work - did not try to install and did not find groovy.

          To clarify, no build log contains messages related to downloading Groovy?

          What happens when you choose a different minor version you haven't set up before in Jenkins, do these get downloaded when you start the first build that has these configured?

          Daniel Beck added a comment - I tried to configure auto install(see attached), didn't work - did not try to install and did not find groovy. To clarify, no build log contains messages related to downloading Groovy? What happens when you choose a different minor version you haven't set up before in Jenkins, do these get downloaded when you start the first build that has these configured?

          vjuranek added a comment -

          Hi,
          which version of plugin and Jenkins core do you use? I just tried with recent jenkins/plugin version and everything seems to work fine...

          vjuranek added a comment - Hi, which version of plugin and Jenkins core do you use? I just tried with recent jenkins/plugin version and everything seems to work fine...

          I am using jenkins 1.619 and groovy hudson builder 1.25.

          the log doesn't show any attempt to install groovy.

          Gilad Baruchian added a comment - I am using jenkins 1.619 and groovy hudson builder 1.25. the log doesn't show any attempt to install groovy.

          vjuranek added a comment -

          could you please check $JENKINS_HOME/updates if hudson.plugins.groovy.GroovyInstaller file is present there a has some content (JSON file with links to bintray)?

          vjuranek added a comment - could you please check $JENKINS_HOME/updates if hudson.plugins.groovy.GroovyInstaller file is present there a has some content (JSON file with links to bintray)?

          it is not present

          Gilad Baruchian added a comment - it is not present

          simon werling added a comment - - edited

          Hello,

          I have the same problem.

          Jenkins ver. 1.621
          Groovy binaries 2.4.4
          JRE 1.8.0_31

          Groovy bin. dir added to PATH
          GROOVY_HOME set correctly
          afterwards started the jenkins slave

          Out of the windows batch in the jenkins job - groovy can be called
          when using the slave side executed groovy plugin code -> groovy exe can not be found

          are any plans existing to fix that?

          I´m not happy with the automatic groovy installation on the clients.

          1. it doesn´t recognize in many cases that there is no groovy installed
          2. if it is installing (juhu), the job aborts (because it takes 'too' long) and in the background java is still downloading the groovy package - you will only see that, when you observe your process list. There is no other hint.

          thank you for any help, simon

          simon werling added a comment - - edited Hello, I have the same problem. Jenkins ver. 1.621 Groovy binaries 2.4.4 JRE 1.8.0_31 Groovy bin. dir added to PATH GROOVY_HOME set correctly afterwards started the jenkins slave Out of the windows batch in the jenkins job - groovy can be called when using the slave side executed groovy plugin code -> groovy exe can not be found are any plans existing to fix that? I´m not happy with the automatic groovy installation on the clients. 1. it doesn´t recognize in many cases that there is no groovy installed 2. if it is installing (juhu), the job aborts (because it takes 'too' long) and in the background java is still downloading the groovy package - you will only see that, when you observe your process list. There is no other hint. thank you for any help, simon

          simon werling added a comment - - edited

          16:57:10 next nodes: [][SIMONTEST_SETUP] $ cmd /c call c:\temp\hudson2594808757146012965.bat
          16:57:11 Groovy Version: 2.4.4 JVM: 1.7.0_17 Vendor: Oracle Corporation OS: Windows 7 <- running fine out of win. cmd
          16:57:11 [SIMONTEST_SETUP] $ groovy c:\\_HUDSON\workspace\SIMONTEST_SETUP\hudson2548118167563489193.groovy
          16:57:11 FATAL: command execution failed <- not working for the groovy plugin
          16:57:11 java.io.IOException: Cannot run program "groovy" (in directory "c:\\_HUDSON\workspace\SIMONTEST_SETUP"): CreateProcess error=2, The system cannot find the file specified
          16:57:11 at java.lang.ProcessBuilder.start(Unknown Source)

          simon werling added a comment - - edited 16:57:10 next nodes: [] [SIMONTEST_SETUP] $ cmd /c call c:\temp\hudson2594808757146012965.bat 16:57:11 Groovy Version: 2.4.4 JVM: 1.7.0_17 Vendor: Oracle Corporation OS: Windows 7 <- running fine out of win. cmd 16:57:11 [SIMONTEST_SETUP] $ groovy c:\\_HUDSON\workspace\SIMONTEST_SETUP\hudson2548118167563489193.groovy 16:57:11 FATAL: command execution failed <- not working for the groovy plugin 16:57:11 java.io.IOException: Cannot run program "groovy" (in directory "c:\\_HUDSON\workspace\SIMONTEST_SETUP"): CreateProcess error=2, The system cannot find the file specified 16:57:11 at java.lang.ProcessBuilder.start(Unknown Source)

            vjuranek vjuranek
            giladba Gilad Baruchian
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: