Skip to content

Instantly share code, notes, and snippets.

@roymartinezblanco
Created July 3, 2020 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roymartinezblanco/d0dc31e617723e00d76a2930392ded7d to your computer and use it in GitHub Desktop.
Save roymartinezblanco/d0dc31e617723e00d76a2930392ded7d to your computer and use it in GitHub Desktop.
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