generated from giis-uniovi/samples-giis-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2d6138
commit e78ecd5
Showing
10 changed files
with
1,025 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
pipeline { | ||
agent {label 'any'} | ||
environment { | ||
SELENOID_PRESENT = "TRUE" | ||
SUT_LOCATION = "$WORKSPACE" | ||
SCRIPTS_FOLDER = "$WORKSPACE/retorchfiles/scripts" | ||
} // EndEnvironment | ||
options { | ||
disableConcurrentBuilds() | ||
} // EndPipOptions | ||
stages { | ||
stage('Clean Workspace') { | ||
steps { | ||
cleanWs() | ||
} // EndStepsCleanWS | ||
} // EndStageCleanWS | ||
stage('Clone Project') { | ||
steps { | ||
checkout scm | ||
} // EndStepsCloneProject | ||
} // EndStageCloneProject | ||
stage('SETUP-Infrastructure') { | ||
steps { | ||
sh 'chmod +x -R $SCRIPTS_FOLDER' | ||
sh '$SCRIPTS_FOLDER/coilifecycles/coi-setup.sh' | ||
} // EndStepsSETUPINF | ||
} // EndStageSETUPInf | ||
stage('Stage 0') { | ||
failFast false | ||
parallel { | ||
stage('tjoba IdResource: HeavyInElasticResource lightInElasticResource ') { | ||
steps { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjoba 0' | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjoba 0 https://full-teaching- 5000 "IntegrationClassOneTests#testBInelasticHeavyRWElasticLightRW,IntegrationClassOneTests#testFInelasticHeavyRWElasticLightRW,IntegrationClassOneTests#testGTwoInelasticHeavyRWElasticLightRW"' | ||
}// EndExecutionStageErrortjoba | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjoba 0' | ||
}// EndStepstjoba | ||
}// EndStagetjoba | ||
stage('tjobb IdResource: lightInElasticResource mediumElasticResource ') { | ||
steps { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobb 0' | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobb 0 https://full-teaching- 5000 "IntegrationClassOneTests#testCInelasticLightNAElasticMediumR,IntegrationClassOneTests#testDInelasticLightROElasticMediumRO"' | ||
}// EndExecutionStageErrortjobb | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobb 0' | ||
}// EndStepstjobb | ||
}// EndStagetjobb | ||
stage('tjobc IdResource: mediumElasticResource ') { | ||
steps { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobc 0' | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobc 0 https://full-teaching- 5000 "IntegrationClassTwoTests#testNOnlyMediumElasticOne,IntegrationClassTwoTests#testOOnlyLightElasticTwo,IntegrationClassTwoTests#testPOnlyLightElasticThree"' | ||
}// EndExecutionStageErrortjobc | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobc 0' | ||
}// EndStepstjobc | ||
}// EndStagetjobc | ||
} // End Parallel | ||
} // End Stage | ||
stage('Stage 1') { | ||
failFast false | ||
parallel { | ||
stage('tjobd IdResource: HeavyInElasticResource mediumElasticResource ') { | ||
steps { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobd 1' | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobd 1 https://full-teaching- 5000 "IntegrationClassOneTests#testAInelasticHeavyRElasticMediumR"' | ||
}// EndExecutionStageErrortjobd | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobd 1' | ||
}// EndStepstjobd | ||
}// EndStagetjobd | ||
stage('tjobe IdResource: lightInElasticResource ') { | ||
steps { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobe 1' | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobe 1 https://full-teaching- 5000 "IntegrationClassOneTests#testEInelasticLightRWElasticLightRW"' | ||
}// EndExecutionStageErrortjobe | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobe 1' | ||
}// EndStepstjobe | ||
}// EndStagetjobe | ||
} // End Parallel | ||
} // End Stage | ||
stage('Stage 2') { | ||
failFast false | ||
parallel { | ||
stage('tjobf IdResource: HeavyInElasticResource ') { | ||
steps { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobf 2' | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobf 2 https://full-teaching- 5000 "IntegrationClassOneTests#testHOneInelasticHeavyRWElasticMockR,IntegrationClassOneTests#testITwoInelasticHeavyRWElasticMockR,IntegrationClassOneTests#testJThreeInelasticHeavyRWElasticMockR,IntegrationClassOneTests#testKFourInelasticHeavyRWElasticMockR"' | ||
}// EndExecutionStageErrortjobf | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobf 2' | ||
}// EndStepstjobf | ||
}// EndStagetjobf | ||
} // End Parallel | ||
} // End Stage | ||
stage('Stage 3') { | ||
failFast false | ||
parallel { | ||
stage('tjobg IdResource: HeavyInElasticResource ') { | ||
steps { | ||
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') { | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-setup.sh tjobg 3' | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-testexecution.sh tjobg 3 https://full-teaching- 5000 "IntegrationClassTwoTests#testLOnlyHIOne,IntegrationClassTwoTests#testMOnlyHITwo"' | ||
}// EndExecutionStageErrortjobg | ||
sh '$SCRIPTS_FOLDER/tjoblifecycles/tjob-teardown.sh tjobg 3' | ||
}// EndStepstjobg | ||
}// EndStagetjobg | ||
} // End Parallel | ||
} // End Stage | ||
stage('TEARDOWN-Infrastructure') { | ||
failFast false | ||
steps { | ||
sh '$SCRIPTS_FOLDER/coilifecycles/coi-teardown.sh' | ||
} // EndStepsTearDownInf | ||
} // EndStageTearDown | ||
} // EndStagesPipeline | ||
post { | ||
always { | ||
archiveArtifacts artifacts: 'artifacts/*.csv', onlyIfSuccessful: true | ||
archiveArtifacts artifacts: 'target/testlogs/**/*.*', onlyIfSuccessful: false | ||
archiveArtifacts artifacts: 'target/containerlogs/**/*.*', onlyIfSuccessful: false | ||
}// EndAlways | ||
} // EndPostActions | ||
} // EndPipeline |
129 changes: 129 additions & 0 deletions
129
retorch-orchestration/retorchfiles/configurations/SyntheticIntegrationSystemResources.json
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,129 @@ | ||
{ | ||
"HeavyInElasticResource": { | ||
"hierarchyParent": [ | ||
"parentAllInelastic" | ||
], | ||
"replaceable": [], | ||
"elasticityModel": { | ||
"elasticityID": "elasModelHeavyInElasticResource", | ||
"elasticity": 1, | ||
"elasticityCost": 50.0 | ||
}, | ||
"resourceType": "LOGICAL", | ||
"resourceID": "HeavyInElasticResource", | ||
"minimalCapacities": [ | ||
{ | ||
"name": "memory", | ||
"quantity": 10 | ||
}, | ||
{ | ||
"name": "processor", | ||
"quantity": 2 | ||
} | ||
], | ||
"dockerImage": "database-docker.someImage" | ||
}, | ||
"lightInElasticResource": { | ||
"hierarchyParent": [ | ||
"parentAllInelastic" | ||
], | ||
"replaceable": [ | ||
"lightElasticResource" | ||
], | ||
"elasticityModel": { | ||
"elasticityID": "elasModelLightInElasticResource", | ||
"elasticity": 1, | ||
"elasticityCost": 50 | ||
}, | ||
"resourceType": "LOGICAL", | ||
"resourceID": "lightInElasticResource", | ||
"minimalCapacities": [ | ||
{ | ||
"name": "memory", | ||
"quantity": 1 | ||
}, | ||
{ | ||
"name": "processor", | ||
"quantity": 0.5 | ||
} | ||
], | ||
"dockerImage": "docker.someImage" | ||
}, | ||
"mockElasticResource": { | ||
"hierarchyParent": [ | ||
"elasticParent" | ||
], | ||
"replaceable": [ | ||
"lightInElasticResource", | ||
"lightElasticResource", | ||
"mediumElasticResource", | ||
"HeavyInElasticResource" | ||
], | ||
"elasticityModel": { | ||
"elasticityID": "elasModelmockElasticResource", | ||
"elasticity": 55, | ||
"elasticityCost": 1.0 | ||
}, | ||
"resourceType": "LOGICAL", | ||
"resourceID": "mockElasticResource", | ||
"minimalCapacities": [ | ||
{ | ||
"name": "memory", | ||
"quantity": 0.2 | ||
}, | ||
{ | ||
"name": "processor", | ||
"quantity": 0.5 | ||
} | ||
], | ||
"dockerImage": "someplaceholder1[IMG:]docker.someImage" | ||
}, | ||
"lightElasticResource": { | ||
"hierarchyParent": [ | ||
"elasticParent" | ||
], | ||
"replaceable": ["lightInElasticResource"], | ||
"elasticityModel": { | ||
"elasticityID": "elasModelLightElasticResource", | ||
"elasticity": 35, | ||
"elasticityCost": 15.0 | ||
}, | ||
"resourceType": "LOGICAL", | ||
"resourceID": "lightElasticResource", | ||
"minimalCapacities": [ | ||
{ | ||
"name": "memory", | ||
"quantity": 1 | ||
}, | ||
{ | ||
"name": "processor", | ||
"quantity": 1 | ||
} | ||
], | ||
"dockerImage": "someplaceholder2[IMG:]docker.someImage" | ||
}, | ||
"mediumElasticResource": { | ||
"hierarchyParent": [ | ||
"elasticParent" | ||
], | ||
"replaceable": [], | ||
"elasticityModel": { | ||
"elasticityID": "elasModelMediumElasticResource", | ||
"elasticity": 10, | ||
"elasticityCost": 35.0 | ||
}, | ||
"resourceType": "LOGICAL", | ||
"resourceID": "mediumElasticResource", | ||
"minimalCapacities": [ | ||
{ | ||
"name": "memory", | ||
"quantity": 2.5 | ||
}, | ||
{ | ||
"name": "processor", | ||
"quantity": 2.0 | ||
} | ||
], | ||
"dockerImage": "someplaceholder3[IMG:]docker.someImage" | ||
} | ||
} |
Oops, something went wrong.