Skip to content

Commit

Permalink
fix(travis stage): Bake stages do not recognize Travis stage or trigger
Browse files Browse the repository at this point in the history
This commit adds Travis stages or triggers as valid predecessors to the bake stages.
  • Loading branch information
jervi committed Apr 4, 2017
1 parent 96a0362 commit 730291b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Expand Up @@ -29,9 +29,9 @@ module.exports = angular.module('spinnaker.core.pipeline.stage.aws.bakeStage', [
{ type: 'requiredField', fieldName: 'package', },
{ type: 'requiredField', fieldName: 'regions', },
{ type: 'stageOrTriggerBeforeType',
stageType: 'jenkins',
stageTypes: ['jenkins', 'travis'],
checkParentTriggers: true,
message: 'Bake stages should always have a Jenkins stage or trigger preceding them.<br> Otherwise, ' +
message: 'Bake stages should always have a Jenkins/Travis stage or trigger preceding them.<br> Otherwise, ' +
'Spinnaker will bake and deploy the most-recently built package.'}
],
restartable: true,
Expand Down
Expand Up @@ -30,9 +30,9 @@ module.exports = angular.module('spinnaker.core.pipeline.stage.azure.bakeStage',
{ type: 'requiredField', fieldName: 'package', },
{ type: 'requiredField', fieldName: 'regions', },
{ type: 'stageOrTriggerBeforeType',
stageType: 'jenkins',
stageTypes: ['jenkins', 'travis'],
checkParentTriggers: true,
message: 'Bake stages should always have a Jenkins stage or trigger preceding them.<br> Otherwise, ' +
message: 'Bake stages should always have a Jenkins/Travis stage or trigger preceding them.<br> Otherwise, ' +
'Spinnaker will bake and deploy the most-recently built package.'}
],
restartable: true,
Expand Down
Expand Up @@ -27,9 +27,9 @@ module.exports = angular.module('spinnaker.netflix.pipeline.stage.quickPatchAsgS
validators: [
{
type: 'stageOrTriggerBeforeType',
stageType: 'jenkins',
stageTypes: ['jenkins', 'travis'],
checkParentTriggers: true,
message: 'You must have a Jenkins stage or trigger before a Quick Patch stage.'
message: 'You must have a Jenkins/Travis stage or trigger before a Quick Patch stage.'
},
{type: 'requiredField', fieldName: 'clusterName', fieldLabel: 'cluster'},
{type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account'},
Expand Down
Expand Up @@ -30,9 +30,9 @@ module.exports = angular.module('spinnaker.core.pipeline.stage.openstack.bakeSta
{ type: 'requiredField', fieldName: 'package', },
{ type: 'requiredField', fieldName: 'regions', },
{ type: 'stageOrTriggerBeforeType',
stageType: 'jenkins',
stageTypes: ['jenkins', 'travis'],
checkParentTriggers: true,
message: 'Bake stages should always have a Jenkins stage or trigger preceding them.<br> Otherwise, ' +
message: 'Bake stages should always have a Jenkins/Travis stage or trigger preceding them.<br> Otherwise, ' +
'Spinnaker will bake and deploy the most-recently built package.'}
],
restartable: true,
Expand Down

0 comments on commit 730291b

Please sign in to comment.