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

EC2 agent executor and filesystem issues with pipeline matrix

XMLWordPrintable

      While a matrix in a Jenkinsfile declarative pipeline with Docker agents seems to handle the executors per agent properly and provide each with a unique directory, the EC2 agents have trouble.  I have seen both shared working directories between matrix cells and multiple simultaneous executors on a single agent set to have only one executor.

      The attached files come from the GitHub repo below and can be used to recreate the scenario in a local Docker setup.  A public AMI is provided but you will have to provide your own EC2 credentials and resources, of course.

      https://github.com/altendky/jenkins-games/tree/295c50483d1bf01c8834e7dfdb7f9e0dec470468

        1. agent.Dockerfile
          0.6 kB
        2. docker-compose.yml
          0.3 kB
        3. jenkins_casc.yaml
          2 kB
        4. jenkins_parallel_test.pem
          2 kB
        5. Jenkinsfile.groovy
          4 kB
        6. master.Dockerfile
          0.9 kB
        7. README.md
          1 kB
        8. sample.log
          29 kB

            thoulen FABRIZIO MANFREDI
            altendky Kyle Altendorf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: