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

Jenkins worker is made available to jobs before startup script finishes running

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      According to the wiki (https://wiki.jenkins.io/display/JENKINS/Google+Compute+Engine+Plugin) the worker VM will have the "Startup Script" commands run on it before the worker is made available to jobs

      Startup Script - defines a set of commands that should be run before making the instance available for running your jobs.
      

       

      In practice it seems the "Startup Script" commands are still running on the VM when a job starts running on it.

      I verified this by having some of the in the "Startup Script" section echo timestamps and logging to a file. The file was still being updated for a couple of minutes after the job started running on the VM.

       

      In my case the "Startup script" is seeding the worker with some caches and I would need for the cache setup to be done before the worker is made available to Jobs.

       

       

        Attachments

          Activity

          arash arash m created issue -
          evanbrown Evan Brown made changes -
          Field Original Value New Value
          Assignee Evan Brown [ evanbrown ] Rachel Yen [ zombiemoose ]
          zombiemoose Rachel Yen made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]

            People

            Assignee:
            zombiemoose Rachel Yen
            Reporter:
            arash arash m
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: