Skip to end of metadata
Go to start of metadata

A quality gate for your configuration data.

SWEAGLE is a SaaS or On-Premise platform for managing, consolidating & continuously validating all kinds of configuration data which is crucial to your CI/CD pipeline.  This plugin allows for uploading config data into SWEAGLE so it can be versioned, validated, and made consumable in many different formats.   More info about SWEAGLE can be found at https://www.sweagle.com/.   

For more information about the SWEAGLE API, register for an account at https://support.sweagle.expert.

The SWEAGLE plugin for Jenkins supports Jenkins Pipeline.  See an example pipeline script here:https://wiki.jenkins.io/display/JENKINS/SWEAGLE+pipeline+example



The plugin supports 4 types of Jenkins build steps for stages of a config data lifecycle. 

Upload --> Validate --> Snapshot --> Export

Global Config

SWEAGLE API KeyAPI key from API type user with appropriate permissions required for automating SWEAGLE tasks
SWEAGLE Tenant URLSaaS or On-Premise URL of your SWEAGLE instance


All actions have an Action Name parameter and a Show API responses parameter that provide more context for the action in the Jenkins console log.  


Action NameGive each action a descriptive name to precede the job's output in the console. 
Show API Responses in Console LogIf checked, SWEAGLE REST API responses will be displayed in the job console. 

Upload Build Step

upload

File LocationLocation of the file in the workspace to be uploaded.
Node PathEnter the path where the data should be uploaded to. seperate the nodenames in the path with a comma. In case the nodes do not yet exist, they will be created automatically.
File formatjson | yaml | xml | txt | properties | ini
Any of the supported formats

Validate Build Step

MDS NameThe exact name of the incoming metadata set which should be validated.
Fail build on validate errorsA threshold used to determine if the build should be failed based on the number of validation errors or warnings.  Use -1 to ignore either threshold.


Snapshot Build Step

snapshot

MDS NameExact name of pending metadata set for which the snapshot should be taken
DescriptionDescription of the snapshot
TagA single string as TAG for that snapshot - cannot contain spaces but can utilize Jenkins variable4s ex "release1.2.${BUILD_ID}"
Fail Build on SnapshotIf the snapshot should fail for any reason, fail the build.

Get Config Build Step



MDS NameThe stored Metadata set to use for retrieving the config data.
File LocationThe location and filename in the Jenkins workspace to save the retrieved config data.
ExporterThe SWEAGLE exporter to use when retrieving the config data.