-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
stage/waiting-for-releaseFix has been merged to develop and is waiting for a releaseFix has been merged to develop and is waiting for a releasetype/bug
Description
Description:
When using a custom template with more than 2 stages, the output still shows:
2 stage(s) were detected, matching the template requirements.
This is due to the hardcoded value on this line.
Steps to reproduce:
- Copy the contents of two-stage-pipeline-template into a new repository
- Modify metadata.json to:
{ "number_of_stages": 3 } - Commit changes
- Run
sam pipeline init - Select '2 - Custom Pipeline Template Location'
- Enter repository path
Observed result:
sam pipeline init generates a pipeline configuration file that your CI/CD system
can use to deploy serverless applications using AWS SAM.
We will guide you through the process to bootstrap resources for each stage,
then walk through the details necessary for creating the pipeline config file.
Please ensure you are in the root folder of your SAM application before you begin.
Select a pipeline template to get started:
1 - AWS Quick Start Pipeline Templates
2 - Custom Pipeline Template Location
Choice: 2
Template Git location: https://github.com/xxxxxxx/test-aws-pipeline-template
Cloning from https://github.com/xxxxxxx/test-aws-pipeline-template (process may take a moment)
You are using the 3-stage pipeline template.
_________ _________ _________
| | | | | |
| Stage 1 |->| Stage 2 |->| Stage 3 |
|_________| |_________| |_________|
Checking for existing stages...
2 stage(s) were detected, matching the template requirements. If these are incorrect, delete .aws-sam/pipeline/pipelineconfig.toml and rerun
Expected result:
sam pipeline init generates a pipeline configuration file that your CI/CD system
can use to deploy serverless applications using AWS SAM.
We will guide you through the process to bootstrap resources for each stage,
then walk through the details necessary for creating the pipeline config file.
Please ensure you are in the root folder of your SAM application before you begin.
Select a pipeline template to get started:
1 - AWS Quick Start Pipeline Templates
2 - Custom Pipeline Template Location
Choice: 2
Template Git location: https://github.com/xxxxxxx/test-aws-pipeline-template
Cloning from https://github.com/xxxxxxx/test-aws-pipeline-template (process may take a moment)
You are using the 3-stage pipeline template.
_________ _________ _________
| | | | | |
| Stage 1 |->| Stage 2 |->| Stage 3 |
|_________| |_________| |_________|
Checking for existing stages...
3 stage(s) were detected, matching the template requirements. If these are incorrect, delete .aws-sam/pipeline/pipelineconfig.toml and rerun
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stage/waiting-for-releaseFix has been merged to develop and is waiting for a releaseFix has been merged to develop and is waiting for a releasetype/bug