Skip to content

Commit

Permalink
Deploying eShopContainers
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Oct 28, 2023
1 parent 0d12240 commit ffdcd60
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,47 @@
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
post {
always {
archiveArtifacts artifacts: 'artifacts/*.csv', onlyIfSuccessful: true }//EndAlways
archiveArtifacts artifacts: 'eshopcontainers-e2etestsuite/artifacts/*.csv', onlyIfSuccessful: true }//EndAlways
cleanup {
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

0 comments on commit ffdcd60

Please sign in to comment.