All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.codepipeline.actions.JenkinsAction.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.codepipeline.actions

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object JenkinsAction {

  def apply(
    projectName: String,
    jenkinsProvider: software.amazon.awscdk.services.codepipeline.actions.IJenkinsProvider,
    `type`: software.amazon.awscdk.services.codepipeline.actions.JenkinsActionType,
    outputs: Option[List[_ <: software.amazon.awscdk.services.codepipeline.Artifact]] = None,
    variablesNamespace: Option[String] = None,
    inputs: Option[List[_ <: software.amazon.awscdk.services.codepipeline.Artifact]] = None,
    runOrder: Option[Number] = None,
    actionName: Option[String] = None
  ): software.amazon.awscdk.services.codepipeline.actions.JenkinsAction =
    software.amazon.awscdk.services.codepipeline.actions.JenkinsAction.Builder
      .create()
      .projectName(projectName)
      .jenkinsProvider(jenkinsProvider)
      .`type`(`type`)
      .outputs(outputs.map(_.asJava).orNull)
      .variablesNamespace(variablesNamespace.orNull)
      .inputs(inputs.map(_.asJava).orNull)
      .runOrder(runOrder.orNull)
      .actionName(actionName.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy