Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Jenkins Job To reset a platform project (used for demos)
# You should export the following variables:
# $API_TOKEN which you get from marketplace
# $PROJECT_ID the platform project like 'hzdp3vdw4poyg'
# $ENVIRONMENT for example 'master'
# $BACKUP_ID which you can get from the CLI
COMPOSER=$(command -v composer >/dev/null 2>&1) || true
if [ -z "$COMPOSER" ] && [ ! -f .build/composer.phar ]; then
mkdir -p .build
curl -sS > .build/composer.phar
cd .build
php composer.phar require platformsh/cli:@stable
PLATFORMSH_CLI_API_TOKEN=$API_TOKEN ./vendor/platformsh/cli/platform environment:restore --yes --project=$PROJECT_ID --environment=$ENVIRONMENT $BACKUP_ID

This comment has been minimized.

Copy link
Owner Author

OriPekelman commented Feb 4, 2016

screen shot 2016-02-04 at 11 08 08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.