The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

SWAMP Plugin

step([$class: 'SwampPostBuild']): SWAMP Assessment

  • projectUUID
    • Type: String
  • assessmentInfo
      Array/List
      Nested Object
    • toolUUID
      • Type: String
    • platformUUID
      • Type: String
  • packageName
    Enter the name of your package here. This should be the name of your program.
    Use a consistant name for better sorting of packages.
    • Type: String
  • packageVersion
    Enter the version string of your package.
    Every build should have a unique version String.
    You can use _$build_ anywhere in the string to get the unique Jenkins build id.
    You can also use _$date_ to get the current date.
    You can also use _$git_ to get the most recent git commit.
    You can also use _$svn_ to get the most recent svn commit.
    If you do not update the version number each build (either using any of the above options or manually updating the version) then submissions will have the same version and be difficult to destinguish in the user interface.
    • Type: String
  • packageDir
    Enter the directory of your package from the workspace. Leave blank if your package is located in the workspace folder.
    • Type: String
  • packageLanguage
    The language that your package uses.
    Your language will be validated to assure you are using an available language.
    • Type: String
  • packageLanguageVersion
    The version of the language that your package uses.
    For the default (most recent) version of your language, leave this field blank.
    • Type: String
  • buildSystem
    Select the build system your project uses.
    Select no-build if you are not using a build or just want to analyze the source code.
    • Type: String
  • buildDirectory
    Enter the directory of your build file from the workspace. Leave blank if the build file is located in your workspace directory.
    • Type: String
  • buildFile
    Enter the build file for your project.
    The default (if left blank) will use the default build file for your build system
    (ie. build.xml for ant, pom.xml for Maven, etc.)
    • Type: String
  • buildTarget
    Enter the build target for your package from the workspace.
    The default (if left blank) is target.
    • Type: String
  • buildCommand
    Enter the build command for your package.
    • Type: String
  • buildOptions
    Enter the build options for your package. (e.g. "--verbose --setInt 1")
    Add multiple options separated by spaces as usual.
    The default (if left blank) will have no options.
    • Type: String
  • configCommand
    Enter the configuration command for your package.
    • Type: String
  • configOptions
    Enter the configuration options for your package. (e.g. "--verbose --setInt 1")
    Add multiple options separated by spaces as usual.
    The default (if left blank) will have no options.
    • Type: String
  • configDirectory
    Enter the directory of your config file from the workspace. Leave blank if the config file is located in your workspace directory.
    • Type: String
  • outputDir
    Enter the output directory from the workspace for the results of the test.
    If the directory does not exist within the workspace, it will be created.
    • Type: String
  • cleanCommand
    Enter the command to clean your build.
    Leave blank for "[build-system] clean"
    • Type: String
  • canComputeNew (optional)
    • Type: boolean
  • canResolveRelativePaths (optional)
    • Type: boolean
  • canRunOnFailed (optional)
    • Type: boolean
  • defaultEncoding (optional)
    • Type: String
  • failedNewAll (optional)
    • Type: String
  • failedNewHigh (optional)
    • Type: String
  • failedNewLow (optional)
    • Type: String
  • failedNewNormal (optional)
    • Type: String
  • failedTotalAll (optional)
    • Type: String
  • failedTotalHigh (optional)
    • Type: String
  • failedTotalLow (optional)
    • Type: String
  • failedTotalNormal (optional)
    • Type: String
  • healthy (optional)
    • Type: String
  • shouldDetectModules (optional)
    • Type: boolean
  • thresholdLimit (optional)
    • Type: String
  • unHealthy (optional)
    • Type: String
  • unstableNewAll (optional)
    • Type: String
  • unstableNewHigh (optional)
    • Type: String
  • unstableNewLow (optional)
    • Type: String
  • unstableNewNormal (optional)
    • Type: String
  • unstableTotalAll (optional)
    • Type: String
  • unstableTotalHigh (optional)
    • Type: String
  • unstableTotalLow (optional)
    • Type: String
  • unstableTotalNormal (optional)
    • Type: String
  • useDeltaValues (optional)
    • Type: boolean
  • usePreviousBuildAsReference (optional)
    • Type: boolean
  • useStableBuildAsReference (optional)
    • Type: boolean

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.