Class LockStep

    • Field Detail

      • resource

        @CheckForNull
        public String resource
      • label

        @CheckForNull
        public String label
      • quantity

        public int quantity
      • variable

        @CheckForNull
        public String variable
        name of environment variable to store locked resources in
      • inversePrecedence

        public boolean inversePrecedence
      • resourceSelectStrategy

        public String resourceSelectStrategy
      • skipIfLocked

        public boolean skipIfLocked
      • priority

        public int priority
    • Constructor Detail

      • LockStep

        @DataBoundConstructor
        public LockStep​(@Nullable
                        String resource)
    • Method Detail

      • setInversePrecedence

        @DataBoundSetter
        public void setInversePrecedence​(boolean inversePrecedence)
      • setResourceSelectStrategy

        @DataBoundSetter
        public void setResourceSelectStrategy​(String resourceSelectStrategy)
      • setSkipIfLocked

        @DataBoundSetter
        public void setSkipIfLocked​(boolean skipIfLocked)
      • setLabel

        @DataBoundSetter
        public void setLabel​(String label)
      • setVariable

        @DataBoundSetter
        public void setVariable​(String variable)
      • setQuantity

        @DataBoundSetter
        public void setQuantity​(int quantity)
      • setPriority

        @DataBoundSetter
        public void setPriority​(int priority)
      • validate

        public void validate()
        Label and resource are mutual exclusive.
      • start

        public org.jenkinsci.plugins.workflow.steps.StepExecution start​(org.jenkinsci.plugins.workflow.steps.StepContext context)
        Specified by:
        start in class org.jenkinsci.plugins.workflow.steps.Step