Class ExternalWorkspace

    • Constructor Detail

      • ExternalWorkspace

        public ExternalWorkspace​(@Nonnull
                                 String diskPoolId,
                                 @Nonnull
                                 String diskId,
                                 @Nonnull
                                 String masterMountPoint,
                                 @Nonnull
                                 String pathOnDisk)
    • Method Detail

      • getId

        @Nonnull
        public String getId()
      • getDiskPoolId

        @Nonnull
        public String getDiskPoolId()
      • getDiskId

        @Nonnull
        public String getDiskId()
      • getMasterMountPoint

        @Nonnull
        public String getMasterMountPoint()
      • getPathOnDisk

        @Nonnull
        public String getPathOnDisk()
      • getCompleteWorkspacePath

        @Nonnull
        public String getCompleteWorkspacePath()
        Computes the complete workspace path, by appending pathOnDisk to the masterMountPoint. It's recommended to use this method when the complete workspace path is needed, instead of manually appending the two strings, with separator between.
        Returns:
        the complete workspace path from Jenkins master
      • getBrowseUrl

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        @Nonnull
        public String getBrowseUrl()
        Computes the browsing url from which this workspace can be accessed from. The url follows the next pattern: JENKINS_ROOT_URL/exws/browse/workspaceId/ws/
        Returns:
        the workspace's browsing url