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 8fbec93
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 13 deletions.
39 changes: 27 additions & 12 deletions Jenkinsfile
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()
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
OUTPUTDIRCOI="./src/retorchcostestimationdata/exec$BUILD_NUMBER/COI.data"
COISETUPSTART=$(date +%s%3N)

ls -la .
#Directories to store the data
mkdir -p "./src/retorchcostestimationdata/exec$BUILD_NUMBER"
mkdir -p "./artifacts"
Expand Down

0 comments on commit 8fbec93

Please sign in to comment.