This repository has been archived by the owner on Jul 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pipeline selection reacts on the runtime change (#351)
* fix: pipeline selection reacts on runtime change * chore: removes reduntant === true in ngIf * chore: aligns techPreview case in html templates
- Loading branch information
1 parent
e859107
commit c02717f
Showing
19 changed files
with
399 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
267 changes: 267 additions & 0 deletions
267
src/app/launcher/create-app/release-strategy-createapp-step/pipelines.fixture.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,267 @@ | ||
import { Pipeline } from '../../model/pipeline.model'; | ||
import { PipelineService } from '../../service/pipeline.service'; | ||
import { Observable } from 'rxjs'; | ||
|
||
export class StubbedPipelineService implements PipelineService { | ||
getPipelines(filterByRuntime?: string): Observable<Pipeline[]> { | ||
return Observable.of(pipelines()); | ||
} | ||
} | ||
|
||
export const mavenReleasePipeline: Pipeline = { | ||
'id': 'maven-release', | ||
'platform': 'maven', | ||
'name': 'Release', | ||
'description': 'Maven based pipeline which:\n\n' + | ||
'* creates a new version then builds and deploys the project into the maven repository', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}], | ||
'suggested': false, | ||
'techPreview': false | ||
}; | ||
|
||
/** | ||
* Data based on https://github.com/fabric8io/fabric8-jenkinsfile-library | ||
*/ | ||
export function pipelines(): Pipeline[] { | ||
|
||
return [{ | ||
'id': 'django-releaseandstage', | ||
'platform': 'django', | ||
'name': 'Release and Stage', | ||
'description': 'Django based pipeline which creates a new version then builds and deploys the project', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, {'name': 'Rollout to Stage', 'description': 'stages the new version into the Stage environment'}], | ||
'suggested': false, | ||
'techPreview': false | ||
}, { | ||
'id': 'django-releasestageapproveandpromote', | ||
'platform': 'django', | ||
'name': 'Release, Stage, Approve and Promote', | ||
'description': 'Django based pipeline which creates a new version then builds and deploys the project', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, { | ||
'name': 'Rollout to Stage', | ||
'description': 'stages the new version into the Stage environment' | ||
}, {'name': 'Approve', 'description': 'waits for Approval to promote'}, { | ||
'name': 'Rollout to Run', | ||
'description': 'promotes to the Run environment' | ||
}], | ||
'suggested': true, | ||
'techPreview': false | ||
}, { | ||
'id': 'dotnet-releaseandstage', | ||
'platform': 'dotnet', | ||
'name': 'Release and Stage', | ||
'description': 'dotnet based pipeline which creates a new version then builds and deploys the project', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, {'name': 'Rollout to Stage', 'description': 'stages the new version into the Stage environment'}], | ||
'suggested': false, | ||
'techPreview': false | ||
}, { | ||
'id': 'dotnet-releasestageapproveandpromote', | ||
'platform': 'dotnet', | ||
'name': 'Release, Stage, Approve and Promote', | ||
'description': 'dotnet based pipeline which creates a new version then builds and deploys the project', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, { | ||
'name': 'Rollout to Stage', | ||
'description': 'stages the new version into the Stage environment' | ||
}, {'name': 'Approve', 'description': 'waits for Approval to promote'}, { | ||
'name': 'Rollout to Run', | ||
'description': 'promotes to the Run environment' | ||
}], | ||
'suggested': true, | ||
'techPreview': false | ||
}, { | ||
'id': 'golang-releaseandstage', | ||
'platform': 'golang', | ||
'name': 'Release and Stage', | ||
'description': 'Golang based pipeline which creates a new version then builds and deploys the project', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, {'name': 'Rollout to Stage', 'description': 'stages the new version into the Stage environment'}], | ||
'suggested': false, | ||
'techPreview': false | ||
}, { | ||
'id': 'golang-releasestageapproveandpromote', | ||
'platform': 'golang', | ||
'name': 'Release, Stage, Approve and Promote', | ||
'description': 'Golang based pipeline which creates a new version then builds and deploys the project', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, { | ||
'name': 'Rollout to Stage', | ||
'description': 'stages the new version into the Stage environment' | ||
}, {'name': 'Approve', 'description': 'waits for Approval to promote'}, { | ||
'name': 'Rollout to Run', | ||
'description': 'promotes to the Run environment' | ||
}], | ||
'suggested': true, | ||
'techPreview': false | ||
}, mavenReleasePipeline, { | ||
'id': 'maven-releaseandstage', | ||
'platform': 'maven', | ||
'name': 'Release and Stage', | ||
'description': 'Maven based pipeline which:\n\n' + | ||
'* creates a new version then builds and deploys the project into the maven repository\n' + | ||
'* stages the new version into the **Stage** environment', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, {'name': 'Rollout to Stage', 'description': 'stages the new version into the Stage environment'}], | ||
'suggested': false, | ||
'techPreview': false | ||
}, { | ||
'id': 'maven-releasestageapproveandpromote', | ||
'platform': 'maven', | ||
'name': 'Release, Stage, Approve and Promote', | ||
'description': 'Maven based pipeline which:\n\n' + | ||
'* creates a new version then builds and deploys the project into the maven repository\n' + | ||
'* stages the new version into the **Stage** environment\n' + | ||
'* waits for **Approval** to promote \n' + | ||
'* promotes to the **Run** environment', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, { | ||
'name': 'Rollout to Stage', | ||
'description': 'stages the new version into the Stage environment' | ||
}, {'name': 'Approve', 'description': 'waits for Approval to promote'}, { | ||
'name': 'Rollout to Run', | ||
'description': 'promotes to the Run environment' | ||
}], | ||
'suggested': true, | ||
'techPreview': false | ||
}, { | ||
'id': 'node-releaseandstage', | ||
'platform': 'node', | ||
'name': 'Release and Stage', | ||
'description': 'NodeJS based pipeline which creates a new version then builds and deploys the project ' + | ||
'into the Nexus repository', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, {'name': 'Rollout to Stage', 'description': 'stages the new version into the Stage environment'}], | ||
'suggested': false, | ||
'techPreview': false | ||
}, { | ||
'id': 'node-releasestageapproveandpromote', | ||
'platform': 'node', | ||
'name': 'Release, Stage, Approve and Promote', | ||
'description': 'NodeJS based pipeline which creates a new version then builds and deploys the project ' + | ||
'into the Nexus repository', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, { | ||
'name': 'Rollout to Stage', | ||
'description': 'stages the new version into the Stage environment' | ||
}, {'name': 'Approve', 'description': 'waits for Approval to promote'}, { | ||
'name': 'Rollout to Run', | ||
'description': 'promotes to the Run environment' | ||
}], | ||
'suggested': true, | ||
'techPreview': false | ||
}, { | ||
'id': 'php-releaseandstage', | ||
'platform': 'php', | ||
'name': 'Release and Stage', | ||
'description': 'PHP apache based pipeline which creates a new version then builds and deploys the project', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, {'name': 'Rollout to Stage', 'description': 'stages the new version into the Stage environment'}], | ||
'suggested': false, | ||
'techPreview': false | ||
}, { | ||
'id': 'php-releasestageapproveandpromote', | ||
'platform': 'php', | ||
'name': 'Release, Stage, Approve and Promote', | ||
'description': 'PHP apache based pipeline which creates a new version then builds and deploys the project', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, { | ||
'name': 'Rollout to Stage', | ||
'description': 'stages the new version into the Stage environment' | ||
}, {'name': 'Approve', 'description': 'waits for Approval to promote'}, { | ||
'name': 'Rollout to Run', | ||
'description': 'promotes to the Run environment' | ||
}], | ||
'suggested': true, | ||
'techPreview': false | ||
}, { | ||
'id': 'rails-releaseandstage', | ||
'platform': 'rails', | ||
'name': 'Release and Stage', | ||
'description': 'Ruby on Rails based pipeline which creates a new version then builds and deploys the project ' + | ||
'into the Nexus repository', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, {'name': 'Rollout to Stage', 'description': 'stages the new version into the Stage environment'}], | ||
'suggested': false, | ||
'techPreview': false | ||
}, { | ||
'id': 'rails-releasestageapproveandpromote', | ||
'platform': 'rails', | ||
'name': 'Release, Stage, Approve and Promote', | ||
'description': 'Ruby on Rails based pipeline which creates a new version then builds and deploys the project ' + | ||
'into the Nexus repository', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, { | ||
'name': 'Rollout to Stage', | ||
'description': 'stages the new version into the Stage environment' | ||
}, {'name': 'Approve', 'description': 'waits for Approval to promote'}, { | ||
'name': 'Rollout to Run', | ||
'description': 'promotes to the Run environment' | ||
}], | ||
'suggested': true, | ||
'techPreview': false | ||
}, { | ||
'id': 'swift-releaseandstage', | ||
'platform': 'swift', | ||
'name': 'Release and Stage', | ||
'description': 'NodeJS based pipeline which creates a new version then builds and deploys the project ' + | ||
'into the Nexus repository', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, {'name': 'Rollout to Stage', 'description': 'stages the new version into the Stage environment'}], | ||
'suggested': false, | ||
'techPreview': false | ||
}, { | ||
'id': 'swift-releasestageapproveandpromote', | ||
'platform': 'swift', | ||
'name': 'Release, Stage, Approve and Promote', | ||
'description': 'NodeJS based pipeline which creates a new version then builds and deploys the project ' + | ||
'into the Nexus repository', | ||
'stages': [{ | ||
'name': 'Build Release', | ||
'description': 'creates a new version then builds and deploys the project into the maven repository' | ||
}, { | ||
'name': 'Rollout to Stage', | ||
'description': 'stages the new version into the Stage environment' | ||
}, {'name': 'Approve', 'description': 'waits for Approval to promote'}, { | ||
'name': 'Rollout to Run', | ||
'description': 'promotes to the Run environment' | ||
}], | ||
'suggested': true, | ||
'techPreview': false | ||
}] as Pipeline[]; | ||
} |
Oops, something went wrong.