Skip to content

Commit

Permalink
Sequential Schedulling
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Sep 20, 2024
1 parent 5af4762 commit ab37aad
Showing 1 changed file with 87 additions and 20 deletions.
107 changes: 87 additions & 20 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ pipeline {
sh '$SCRIPTS_FOLDER/coilifecycles/coi-setup.sh'
}// EndStepsSETUPINF
}// EndStageSETUPInf
stage('Stage 0'){
failFast false
parallel{
stage('TJobC IdResource: Attenders LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobc 0'
Expand All @@ -41,11 +38,21 @@ pipeline {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobd 0'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobd 0 https://full-teaching- 5000 "FullTeachingEndToEndRESTTests#courseRestOperations,CourseTeacherTest#teacherEditCourseValues"'
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobd 0 https://full-teaching- 5000 "FullTeachingEndToEndRESTTests#courseRestOperations"'
}// EndExecutionStageErrorTJobD
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobd 0'
}// EndStepsTJobD
}// EndStageTJobD
stage('TJobE IdResource: Configuration LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobd 0'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobd 0 https://full-teaching- 5000 "CourseTeacherTest#teacherEditCourseValues"'
}// EndExecutionStageErrorTJobD
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobd 0'
}// EndStepsTJobD
}// EndStageTJobD

stage('TJobE IdResource: Configuration LoginService OpenVidu ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobe 0'
Expand All @@ -59,7 +66,25 @@ pipeline {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobf 0'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobf 0 https://full-teaching- 5000 "LoggedLinksTests#spiderLoggedTest,UnLoggedLinksTests#spiderUnloggedTest,CourseTeacherTest#teacherDeleteCourseTest"'
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobf 0 https://full-teaching- 5000 "LoggedLinksTests#spiderLoggedTest"'
}// EndExecutionStageErrorTJobF
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobf 0'
}// EndStepsTJobF
}// EndStageTJobF
stage('TJobF1 IdResource: Course LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobf 0'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobf 0 https://full-teaching- 5000 "UnLoggedLinksTests#spiderUnloggedTest"'
}// EndExecutionStageErrorTJobF
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobf 0'
}// EndStepsTJobF
}// EndStageTJobF
stage('TJobF2 IdResource: Course LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobf 0'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobf 0 https://full-teaching- 5000 "CourseTeacherTest#teacherDeleteCourseTest"'
}// EndExecutionStageErrorTJobF
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobf 0'
}// EndStepsTJobF
Expand All @@ -68,16 +93,30 @@ pipeline {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobg 0'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobg 0 https://full-teaching- 5000 "CourseStudentTest#studentCourseMainTest,CourseTeacherTest#teacherCourseMainTest,CourseTeacherTest#teacherCreateAndDeleteCourseTest"'
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobg 0 https://full-teaching- 5000 "CourseStudentTest#studentCourseMainTest"'
}// EndExecutionStageErrorTJobG
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobg 0'
}// EndStepsTJobG
}// EndStageTJobG
stage('TJobG1 IdResource: Course LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobg 0'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobg 0 https://full-teaching- 5000 "CourseTeacherTest#teacherCourseMainTest"'
}// EndExecutionStageErrorTJobG
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobg 0'
}// EndStepsTJobG
}// EndStageTJobG

stage('TJobG2 IdResource: Course LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobg 0'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobg 0 https://full-teaching- 5000 "CourseTeacherTest#teacherCreateAndDeleteCourseTest"'
}// EndExecutionStageErrorTJobG
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobg 0'
}// EndStepsTJobG
}// EndStageTJobG
}// End Parallel
}// End Stage
stage('Stage 1'){
failFast false
parallel{
stage('TJobH IdResource: Information LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobh 1'
Expand Down Expand Up @@ -109,7 +148,34 @@ pipeline {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobk 1'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobk 1 https://full-teaching- 5000 "LoggedForumTest#forumNewCommentTest,LoggedForumTest#forumNewEntryTest,LoggedForumTest#forumNewReply2CommentTest,FullTeachingEndToEndRESTTests#forumRestOperations"'
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobk 1 https://full-teaching- 5000 "LoggedForumTest#forumNewCommentTest"'
}// EndExecutionStageErrorTJobK
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobk 1'
}// EndStepsTJobK
}// EndStageTJobK
stage('TJobK1 IdResource: Forum LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobk 1'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobk 1 https://full-teaching- 5000 "LoggedForumTest#forumNewEntryTest"'
}// EndExecutionStageErrorTJobK
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobk 1'
}// EndStepsTJobK
}// EndStageTJobK
stage('TJobK2 IdResource: Forum LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobk 1'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobk 1 https://full-teaching- 5000 "LoggedForumTest#forumNewReply2CommentTest"'
}// EndExecutionStageErrorTJobK
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobk 1'
}// EndStepsTJobK
}// EndStageTJobK
stage('TJobK3 IdResource: Forum LoginService OpenViduMock ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobk 1'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobk 1 https://full-teaching- 5000 "FullTeachingEndToEndRESTTests#forumRestOperations"'
}// EndExecutionStageErrorTJobK
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobk 1'
}// EndStepsTJobK
Expand All @@ -123,16 +189,19 @@ pipeline {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobl 1'
}// EndStepsTJobL
}// EndStageTJobL
}// End Parallel
}// End Stage
stage('Stage 2'){
failFast false
parallel{
stage('TJobM IdResource: Session LoginService OpenVidu ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobm 2'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobm 2 https://full-teaching- 5000 "FullTeachingTestEndToEndVideoSessionTests#oneToOneVideoAudioSessionChrome,FullTeachingLoggedVideoSessionTests#sessionTest"'
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobm 2 https://full-teaching- 5000 "FullTeachingTestEndToEndVideoSessionTests#oneToOneVideoAudioSessionChrome"'
}// EndExecutionStageErrorTJobM
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobm 2'
}// EndStepsTJobM
stage('TJobM IdResource: Session LoginService OpenVidu ') {
steps {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobm 2'
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobm 2 https://full-teaching- 5000 "FullTeachingLoggedVideoSessionTests#sessionTest"'
}// EndExecutionStageErrorTJobM
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobm 2'
}// EndStepsTJobM
Expand All @@ -146,8 +215,6 @@ pipeline {
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobn 2'
}// EndStepsTJobN
}// EndStageTJobN
}// End Parallel
}// End Stage
stage('TEARDOWN-Infrastructure') {
steps {
sh '$SCRIPTS_FOLDER/coilifecycles/coi-teardown.sh'
Expand Down

0 comments on commit ab37aad

Please sign in to comment.