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
0d12240
commit 9a6f84a
Showing
2 changed files
with
29 additions
and
14 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 |
---|---|---|
@@ -1,34 +1,49 @@ | ||
node ('xretorch-agent') { | ||
stage ('Clone eShopContainers Project') { | ||
pipeline { | ||
agent {label 'xretorch-agent'} | ||
environment { | ||
ET_EUS_API = "http://selenoid:4444/wd/hub" | ||
CURRENT_DATE = " date +\'[%m-%d-%y] %T - \'" | ||
//Used to avoid the UnixHTTPConnectionPool(host='localhost', port=None): Read timed out and | ||
DOCKER_CLIENT_TIMEOUT = 120 | ||
COMPOSE_HTTP_TIMEOUT = 120 | ||
}//EndEnvironment | ||
options { | ||
disableConcurrentBuilds() | ||
}//EndPipOptions | ||
stages{ | ||
|
||
stage ('Clone eShopContainers Project') { | ||
steps{ | ||
checkout([$class: 'GitSCM', branches: [[name: '*/retorch']], | ||
userRemoteConfigs: [[url: 'https://github.com/augustocristian/retorch-st-eShopOnContainers.git']]]) | ||
checkout scm | ||
|
||
}//EndSteps | ||
}//End git stage | ||
|
||
stage('SETUP-Infrastructure') { | ||
sh 'ls -a .' | ||
sh 'cd ./eshopcontainers-e2etestsuite' | ||
sh 'ls -a .' | ||
steps{ | ||
//Change the permisions to the scripts folder the | ||
sh 'chmod +x -R ./retorchfiles/scripts' | ||
sh './retorchfiles/scripts/coilifecycles/coi-setup.sh' | ||
sh 'chmod +x -R ./eshopcontainers-e2etestsuite/retorchfiles/scripts' | ||
sh './eshopcontainers-e2etestsuite/retorchfiles/scripts/coilifecycles/coi-setup.sh' | ||
}//End Steps | ||
}//EndStageSETUPInf | ||
|
||
|
||
|
||
stage('test') { | ||
|
||
steps{ | ||
sh "sleep 10" | ||
sh "mvn test" | ||
}//End Steps | ||
}// End test stage | ||
|
||
}//EndStagesPipeline | ||
post { | ||
always { | ||
archiveArtifacts artifacts: 'artifacts/*.csv', onlyIfSuccessful: true }//EndAlways | ||
archiveArtifacts artifacts: 'eshopcontainers-e2etestsuite/artifacts/*.csv', onlyIfSuccessful: true }//EndAlways | ||
cleanup { | ||
cleanWs() | ||
//cleanWs() | ||
sh """(eval \$CURRENT_DATE ; echo "Cleaning Environment ") | cat |tr '\n' ' ' """ | ||
sh './retorchfiles/scripts/coilifecycles/coi-teardown.sh' }//EndCleanUp | ||
sh './eshopcontainers-e2etestsuite/retorchfiles/scripts/coilifecycles/coi-teardown.sh' }//EndCleanUp | ||
}//EndPostActions | ||
} | ||
}//EndPipeline |
2 changes: 1 addition & 1 deletion
2
eshopcontainers-e2etestsuite/retorchfiles/scripts/coilifecycles/coi-setup.sh
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