INFRA-3279 | add env condition for infra release
This commit is contained in:
@@ -258,7 +258,7 @@ export const PipelineCard: FC<PipelineCardProps> = (props: PipelineCardProps) =>
|
||||
</>
|
||||
)}
|
||||
<div className="horizontal-line"></div>
|
||||
{!_p.teamsToSkipInfraRelease.has(teamName) && <InfraRelease />}
|
||||
{environment == 'prod' && !_p.teamsToSkipInfraRelease.has(teamName) && <InfraRelease />}
|
||||
</>
|
||||
</Formik>
|
||||
);
|
||||
|
||||
@@ -220,7 +220,7 @@ export const generatePipelineManifest = (
|
||||
const obj = _.cloneDeep(response);
|
||||
const index = findPipelineIndex(obj, 'deployment', env);
|
||||
obj.pipelines = [obj.pipelines[index]];
|
||||
if (teamsToSkipInfraRelease.has(teamName)) {
|
||||
if (env != 'prod' || teamsToSkipInfraRelease.has(teamName)) {
|
||||
removeStage(obj, 'release');
|
||||
}
|
||||
return obj;
|
||||
|
||||
Reference in New Issue
Block a user