public class PublishSQ extends AbstractDevOpsAction implements jenkins.tasks.SimpleBuildStep
| Modifier and Type | Class and Description |
|---|---|
static class |
PublishSQ.OptionalBuildInfo |
static class |
PublishSQ.PublishSQImpl
Descriptor for
PublishSQ. |
hudson.tasks.Publisher.DescriptorExtensionListImpljenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactoryAPI_KEY, APP_NAME, CONTROL_CENTER, DEFAULT_ENV, DLMS, ENV, GATE_SERVICE, LOGGER, PASSWORD, RESULT_FAIL, RESULT_SUCCESS, TOOLCHAIN_ID, USERNAME| Constructor and Description |
|---|
PublishSQ(HashMap<String,String> envVarsMap,
HashMap<String,String> paramsMap) |
PublishSQ(String credentialsId,
String toolchainName,
String buildJobName,
String applicationName,
String SQHostName,
String SQAuthToken,
String SQProjectKey,
PublishSQ.OptionalBuildInfo additionalBuildInfo) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonObject |
createDLMSPayload(String hostname,
String projectKey,
String authToken)
Combines all SQ information into one gson that can be sent to DLMS
|
com.google.gson.JsonArray |
createPayloadUrls(String SQHostname,
String SQKey)
Constructs the urls that should be sent with the DLMS message
|
String |
getApplicationName()
We'll use this from the config.jelly.
|
String |
getBuildJobName() |
String |
getBuildNumber() |
String |
getCredentialsId() |
PublishSQ.PublishSQImpl |
getDescriptor() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getSQAuthToken() |
String |
getSQHostName() |
String |
getSQProjectKey() |
String |
getToolchainName() |
void |
perform(hudson.model.Run build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setApplicationName(String applicationName) |
void |
setBuildNumber(String buildNumber) |
chooseAppsUrl, chooseIAMAPI, chooseOrganizationsUrl, chooseSpacesUrl, chooseTargetAPI, constructBuildNumber, expandVariable, getAllEndpoints, getAppId, getBluemixToken, getBuildNumber, getDecisionFromDRA, getDeploymentRiskUrl, getIAMToken, getIBMCloudToken, getOrgId, getOTCBrokerServer, getPolicyList, getReportUrl, getSpaceId, getTokenForFreeStyleJob, passEnvToNextBuildStep, printDebugLog, publishDecision, setDLMSUrl, setGateServiceUrl, setRequiredEnvVarsall, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform, prebuild@DataBoundConstructor public PublishSQ(String credentialsId, String toolchainName, String buildJobName, String applicationName, String SQHostName, String SQAuthToken, String SQProjectKey, PublishSQ.OptionalBuildInfo additionalBuildInfo)
public void setBuildNumber(String buildNumber)
@DataBoundSetter public void setApplicationName(String applicationName)
public String getApplicationName()
public String getToolchainName()
public String getCredentialsId()
public String getBuildJobName()
public String getSQHostName()
public String getSQAuthToken()
public String getSQProjectKey()
public String getBuildNumber()
public void perform(@Nonnull hudson.model.Run build, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform in interface jenkins.tasks.SimpleBuildStepInterruptedExceptionIOExceptionpublic com.google.gson.JsonArray createPayloadUrls(String SQHostname, String SQKey)
SQHostname - hostname of the SQ instanceSQKey - project key of the SQ instancepublic com.google.gson.JsonObject createDLMSPayload(String hostname, String projectKey, String authToken) throws Exception
hostname - projectKey - authToken - Exceptionpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic PublishSQ.PublishSQImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.RecorderCopyright © 2016–2020. All rights reserved.