Created
July 3, 2020 17:53
-
-
Save roymartinezblanco/d0dc31e617723e00d76a2930392ded7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent { | |
docker { | |
image 'akamai/property:latest' | |
} | |
} | |
stages { | |
stage('Fetch Template Configuration') { | |
steps { | |
sh "akamai property --edgerc ${edgerc} retrieve ${template_config} --section default --file output/${template_config}.json" | |
archiveArtifacts 'output/*.json' | |
} | |
} | |
stage('Update Configuration') { | |
steps { | |
sh 'akamai property --edgerc ${edgerc} update ${pm_config} --file output/${template_config}.json --section default ' | |
} | |
} | |
stage('Activate [Staging]') { | |
steps { | |
sh 'akamai property --edgerc ${edgerc} activate ${pm_config} --network STAGING --email rmartine@akamai.com --section default ' | |
} | |
} | |
stage('Activate [Prod]') { | |
steps { | |
sh 'akamai property --edgerc ${edgerc} activate ${pm_config} --network PROD --email rmartine@akamai.com --section default ' | |
} | |
} | |
} | |
environment { | |
edgerc = credentials('edgerc') | |
template_config = 'gold.demo.gcs' | |
pm_config = 'cli.demo' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment