Class BeforeStartInstanceArgumentsImpl

    • Constructor Detail

      • BeforeStartInstanceArgumentsImpl

        public BeforeStartInstanceArgumentsImpl()
    • Method Detail

      • addAgentCustomProperty

        public void addAgentCustomProperty​(@NotNull
                                           String key,
                                           @NotNull
                                           String value)
        Add new build agent property. Either system of env. This is equal to adding a new line to buildAgent.properties file
        Specified by:
        addAgentCustomProperty in interface BeforeStartInstanceArguments
        Parameters:
        key - key
        value - value
      • doNotStartInstance

        public void doNotStartInstance​(@NotNull
                                       String reason)
        Disables start on the instance of the image settings the following reason
        Specified by:
        doNotStartInstance in interface BeforeStartInstanceArguments
        Parameters:
        reason - reason to deny start
      • getAgentCustomProperties

        @NotNull
        public Map<String,​String> getAgentCustomProperties()
      • getDoNotStartReasons

        @NotNull
        public Collection<String> getDoNotStartReasons()