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.

Azure Cosmos DB Plugin

azureCosmosDBCreateDocument: Create document in Azure Cosmos DB

The azureCosmosDBCreateDocument creates documents in Azure Cosmos DB.

The credential must be of type Azure Cosmos DB.

Example:

azureCosmosDBCreateDocument credentialsId: 'cosmos-connection',
    database: 'jenkins',
    container: 'your-container',
    document: [
            id                      : "${UUID.randomUUID().toString()}",
            current_build_duration  : currentBuild.duration
    ]
  • credentialsId : String

    A credential of type Azure Cosmos DB.

  • database : String

    The database you want to store documents in, must be already created.

  • container : String

    The container you want to store documents in, must be already created.

  • document : Object

    A groovy object that contains the document you want to send

    Example:

    document: [
        id                      : "${UUID.randomUUID().toString()}",
        current_build_duration  : currentBuild.duration
    ]
    

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.