Package com.fortinet.forticontainer
Class JenkinsServer
- java.lang.Object
-
- com.fortinet.forticontainer.JenkinsServer
-
public class JenkinsServer extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringaddImage(SessionInfo sessionInfo, CurrentBuildInfo currentBuildInfo, String jenkinsId)static StringaddJob(SessionInfo sessionInfo, CurrentBuildInfo currentBuildInfo)static BooleanaddPolicyThreshold()static IntegercheckJobStatus(SessionInfo sessionInfo, String jobId, PrintStream ps)static voidprintImageDigest(String imageName, PrintStream ps)static BooleanreserveJob(SessionInfo sessionInfo, String jobId)static BooleanupdateJobStatus(SessionInfo sessionInfo, String jobId, Integer statusCode)static BooleanuploadImage(String jobId, String imageName, String imageId, SessionInfo sessionInfo, PrintStream ps)
-
-
-
Method Detail
-
reserveJob
public static Boolean reserveJob(SessionInfo sessionInfo, String jobId) throws IOException
- Throws:
IOException
-
addImage
public static String addImage(SessionInfo sessionInfo, CurrentBuildInfo currentBuildInfo, String jenkinsId) throws IOException
- Throws:
IOException
-
addJob
public static String addJob(SessionInfo sessionInfo, CurrentBuildInfo currentBuildInfo) throws IOException
- Throws:
IOException
-
printImageDigest
public static void printImageDigest(String imageName, PrintStream ps)
-
uploadImage
public static Boolean uploadImage(String jobId, String imageName, String imageId, SessionInfo sessionInfo, PrintStream ps) throws IOException
- Throws:
IOException
-
updateJobStatus
public static Boolean updateJobStatus(SessionInfo sessionInfo, String jobId, Integer statusCode) throws IOException
- Throws:
IOException
-
checkJobStatus
public static Integer checkJobStatus(SessionInfo sessionInfo, String jobId, PrintStream ps) throws IOException
- Throws:
IOException
-
addPolicyThreshold
public static Boolean addPolicyThreshold()
-
-