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.

Pipeline: HuaweiCloud Steps

invokeFunction: Invoke a given function

  • functionName
    • Type: String
  • payload (optional)
  • payloadAsString (optional)
    • Type: String
  • returnValueAsString (optional)
    • Type: boolean

obsUpload: Copy file to obs

Upload a file/folder from the workspace to an S3 bucket. If the file parameter denotes a directory, then the complete directory (including all subfolders) will be uploaded. If text is provided, upload the text as the provided filename in the remote S3 bucket.

  • bucket
    This is the bucket to use.
    • Type: String
  • excludePathPattern (optional)
    This is the pattern to use to exclude files Sample : "*.svg"
    • Type: String
  • file (optional)
    This is the local file to upload from the workspace.
    • Type: String
  • includePathPattern (optional)
    This is the pattern to use to find files to push to S3 Sample : "dist/**"
    • Type: String
  • metadatas (optional)
    Metadatas to add to push file. Multiple metadatas must be separated with a ';' and name and value separated by a ':'. Sample : "Content-Type:image/svg+xml;Another:AnotherValue"
      Array/List
    • Type: String
  • path (optional)
    This is the path inside the bucket to use. Do not begin with a leading "/".
    • Type: String
  • text (optional)
    This is the text to be copied up to S3.
    • Type: String
  • workingDir (optional)
    Working directories for obsUpload plugin Sample : "dist"
    • Type: String

withOBS: set OBS settings for nested block

The withOBS step provides authorization for the nested steps. You can provide region. withOBS block.

  • credentials (optional)
    Use standard Jenkins UsernamePassword credentials. Note: the username should be your Access Key ID, and the password should be the Secret Access Key.
    • Type: String
  • endpointUrl (optional)
    The OBS endpoint-url.
    • Type: String
  • region (optional)
    The OBS region.
    • 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.