Skip to content

Instantly share code, notes, and snippets.

@mocon
Last active December 22, 2016 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mocon/d0d04871b7a6434785c61e3717fa42db to your computer and use it in GitHub Desktop.
Save mocon/d0d04871b7a6434785c61e3717fa42db to your computer and use it in GitHub Desktop.

📂  repo_root/
    📄 Jenkinsfile (has no file extension, references tasks in xx_BUILD_STEP folders below)

    📂 01_BUILD/
        📄  _build.sh
        (optional - add more files for BUILD stage here)

    📂 02_UNIT_TESTS/
        📄  _unit_tests.sh
        (optional - add more files for UNIT_TESTS stage here)

    📂 03_INTEGRATION_TESTS/
        📄  _integration_tests.sh
        (optional - add more files for INTEGRATION_TESTS stage here)

    📂 04_CREATE_DEV_PACKAGE/
        📄  _create_dev_package.sh
        (optional - add more files for CREATE_DEV_PACKAGE stage here)

    📂 05_DEPLOY_DEV_PACKAGE_FOR_MANUAL_REVIEW/
        📄  _deploy_dev_package_for_manual_review.sh
        (optional - add more files for DEPLOY_DEV_PACKAGE_FOR_MANUAL_REVIEW stage here)

    📂 06_MANUAL_REVIEW_OF_DEV_PACKAGE/
        📄  _manual_review_of_dev_package.sh
        (optional - add more files for MANUAL_REVIEW_OF_DEV_PACKAGE stage here)

if it passes MANUAL_REVIEW_OF_DEV_PACKAGE stage...

    📂 07_DEPLOY_DEV_PACKAGE_TO_STAGING/
        📄  _deploy_dev_package_to_staging.sh
        (optional - add more files for DEPLOY_DEV_PACKAGE_TO_STAGING stage here)

    📂 08_MANUAL_REVIEW_OF_STAGING/
        📄  _manual_review_of_staging.sh
        (optional - add more files for MANUAL_REVIEW_OF_STAGING stage here)

if it passes MANUAL_REVIEW_OF_STAGING stage...

    📂 09_DEPLOY_STAGING_TO_PROD/
        📄  _deploy_staging_to_prod.sh
        (optional - add more files for DEPLOY_STAGING_TO_PROD stage here)

DEPLOY_STAGING_TO_PROD must be manually triggered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment