Class WorkflowJob

    • Field Detail

      • script

        public final Control script
      • sandbox

        public final Control sandbox
    • Constructor Detail

      • WorkflowJob

        public WorkflowJob​(com.google.inject.Injector injector,
                           URL url,
                           String name)
    • Method Detail

      • copyResourceStep

        public String copyResourceStep​(String filePath)
      • delete

        public void delete()
        Description copied from class: Job
        Deletes the current job.
        Overrides:
        delete in class Job
      • setJenkinsFileRepository

        public void setJenkinsFileRepository​(String gitRepositoryUrl,
                                             String credentialsKey)
        Selects the location of the Jenkinsfile to be a Git repository with the specified URL. The provided credentials key is used to connect to the Git repository.
        Parameters:
        gitRepositoryUrl - the URL to the Git repository that contains the Jenkinsfile
        credentialsKey - the key of the credentials to be used to connect to the repository