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 String
addImage(SessionInfo sessionInfo, CurrentBuildInfo currentBuildInfo, String jenkinsId)
static String
addJob(SessionInfo sessionInfo, CurrentBuildInfo currentBuildInfo)
static Boolean
addPolicyThreshold()
static Integer
checkJobStatus(SessionInfo sessionInfo, String jobId, PrintStream ps)
static void
printImageDigest(String imageName, PrintStream ps)
static Boolean
reserveJob(SessionInfo sessionInfo, String jobId)
static Boolean
updateJobStatus(SessionInfo sessionInfo, String jobId, Integer statusCode)
static Boolean
uploadImage(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()
-
-