Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65942

java groovy libraries are not executed on kubernetes slave pod

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: kubernetes-plugin
    • Environment:
    • Similar Issues:

      Description

      Hi all,

      we are executing our pipeline script on slave pod, which has some groovy libraries.
      def process = ['bash', '-c', cmd].execute()
      def file= new File( "test.txt" )

      even though the scripts are executed from slave pod, the groovy libraries seems to be working only in our master pod.

      Is there any plugin which takes care of groovy execution in kubernetes slave pod. If now, then why the groovy script libraries are working only in master pod??

       

      Thanks and Regards,

      Raghavi G. Kamat

        Attachments

          Activity

          raghkama Raghavi created issue -
          Hide
          macdrega Joerg Schwaerzler added a comment -

          I suggest to read the documentation about the bat and sh steps as well as readFile and so on.

          Show
          macdrega Joerg Schwaerzler added a comment - I suggest to read the documentation about the bat and sh steps as well as readFile and so on.
          Hide
          raghkama Raghavi added a comment -

          The issue is not about shell and bash scripts. The only issue we are facing is not been able to use a groovy libraries in the slave pod.

          Show
          raghkama Raghavi added a comment - The issue is not about shell and bash scripts. The only issue we are facing is not been able to use a groovy libraries in the slave pod.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            raghkama Raghavi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: