Martini Upload Package Task
Overview
The Martini Upload Package Task is a custom Azure DevOps task designed to zip and upload a Martini package to a target Martini instance. It provides configuration options for asynchronous uploads and deployment status verification.
This task is ideal for CI/CD pipelines where Martini packages need to be built and deployed automatically.
Features
- Automatically zips and uploads Martini packages
- Supports package filtering using regex patterns
- Configurable async upload behavior
- Optional polling for successful deployment verification
For an example of a package and usage, refer to the sample repository.
Usage
Add the following to your Azure Pipeline YAML definition:
- task: martiniUploadPackageTask@2
inputs:
PACKAGE_DIR: "<string>"
PACKAGE_NAME_PATTERN: "<string>"
ASYNC_UPLOAD: "<string>"
SUCCESS_CHECK_TIMEOUT: "<integer>"
SUCCESS_CHECK_DELAY: "<integer>"
SUCCESS_CHECK_PACKAGE_NAME: "<string>"
env:
BASE_URL: "<string>"
MARTINI_ACCESS_TOKEN: "<string>"
Environment Variables
BASE_URL
(required) – The base URL of the Martini instance.
MARTINI_ACCESS_TOKEN
(required) – Access token for authenticating with Martini.
Name |
Description |
Default |
PACKAGE_DIR |
Root directory containing packages |
packages |
PACKAGE_NAME_PATTERN |
Regex pattern to filter which package directories to include |
.* |
ASYNC_UPLOAD |
If true , treats HTTP 504 as a success (for async uploads) |
false |
SUCCESS_CHECK_TIMEOUT |
Max number of polling attempts before timing out |
6 |
SUCCESS_CHECK_DELAY |
Delay (in seconds) between each polling attempt |
30 |
SUCCESS_CHECK_PACKAGE_NAME |
Optional name of a specific package to monitor after upload |
(optional) |
Example
- task: martiniUploadPackageTask@2
env:
BASE_URL: $(BASE_URL)
MARTINI_ACCESS_TOKEN: $(MARTINI_ACCESS_TOKEN)
Support
This task is maintained by Edgar Allen Dimacali.
If you encounter issues or have feature requests, please include the following in your report:
- Task version
- Relevant logs or error messages
- Steps to reproduce the issue