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

Pipeline script with agent { label 'master' } hangs with Node User Restrictions

XMLWordPrintable

      1. Installed the current jenkins version (2.249.1)

      2. On startup installed the recommended plugins

      3. Installed Job Restrictions Plugin (0.8)

      4. Created pipeline job

       

      pipeline {
          agent {
              label 'master'
          }
          stages {
              stage('TEST') {
                  steps {
                      println "SUCCESS"
                  }
              }
          }
      }
      

       

      5. Run job to make sure it succeeds

      6. Goto Manage Jenkins > Manage Nodes and Clouds

      7. Click on master

      8. Click on Configure

      9. Check "Restrict jobs execution at node" and select "Started by User", add "admin" as user id. Save changes. 

      10. Run job in #4 again. 

      11. Job hangs with message "Restrict jobs execution at node" 

       

      Am I doing something wrong?

      The goal is to specifically not allow certain users to execute jobs on a node that has too much access to the system (e.g. an AWS EC2 node that has privileged access to AWS)

            Unassigned Unassigned
            bernhardlenz2 Bernhard Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: