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.

SCM HttpClient

scmHttpClient: SCM HttpClient

  • url
    • Type: String
  • addScmPath (optional)

    added custom paths to each affected scm path.

    e.g., Add scmPath: testOne

    assuming you get the current scm affected path list: [["src/main/java/Test.java"],["app/src/main/java/HelloWorld.java"]]

    With the handle, the result: you will get a new affected path list: [["testOne","src/main/java/Test.java"],["testOne","src/main/java/HelloWorld.java"]]

    if you need to add more, Add scmPath can be use like: testOne,testTwo,testThird

    • Type: String
  • contentType (optional)
    • Values: NOT_SET, TEXT_HTML, TEXT_PLAIN, APPLICATION_FORM, APPLICATION_JSON, APPLICATION_JSON_UTF8, APPLICATION_TAR, APPLICATION_ZIP, APPLICATION_OCTETSTREAM
  • credentialId (optional)
    • Type: String
  • httpMode (optional)
    • Values: GET, HEAD, POST, PUT, DELETE, OPTIONS, PATCH
  • regexString (optional)

    using regular expression to handle each affected scm path.

    eg: Regex string: src.*java

    assuming you get the current scm affected path list: [["src/main/java/Test.java"],["app/src/main/java/HelloWorld.java"]]

    With the handle, the result: you will get a new affected path list: [["src/main/java/Test.java"],["src/main/java/HelloWorld.java"]]

    • Type: String
  • requestBody (optional)
    • Type: String
  • saveAffectedPath (optional)

    it will be use like $(AFFECTED_PATH) on request body.

    • Type: boolean
  • saveJobBuildMessage (optional)

    it will be use like $(JOB_BUILD_MESSAGE) on request body.

    • Type: boolean
  • sendHttpRequest (optional)
    • Type: boolean
  • validResponseCodes (optional)
    • Type: String
  • validResponseContent (optional)
    • Type: String

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.