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 027b443
Showing
5 changed files
with
66 additions
and
39 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,45 @@ | ||
node ('xretorch-agent') { | ||
stage ('Clone eShopContainers Project') { | ||
pipeline { | ||
agent { | ||
label 'xretorch-agent' | ||
} | ||
environment { | ||
ET_EUS_API = "http://selenoid:4444/wd/hub" | ||
|
||
checkout([$class: 'GitSCM', branches: [[name: '*/retorch']], | ||
userRemoteConfigs: [[url: 'https://github.com/augustocristian/retorch-st-eShopOnContainers.git']]]) | ||
checkout scm | ||
|
||
}//End git stage | ||
} | ||
options { | ||
disableConcurrentBuilds() | ||
} | ||
stages { | ||
stage('Clone eShopContainers Project') { | ||
steps { | ||
checkout scm} | ||
} | ||
|
||
stage('SETUP-Infrastructure') { | ||
sh 'ls -a .' | ||
sh 'cd ./eshopcontainers-e2etestsuite' | ||
sh 'ls -a .' | ||
//Change the permisions to the scripts folder the | ||
sh 'chmod +x -R ./retorchfiles/scripts' | ||
sh './retorchfiles/scripts/coilifecycles/coi-setup.sh' | ||
}//EndStageSETUPInf | ||
|
||
stage('SETUP-Infrastructure') { | ||
steps { | ||
sh 'ls -a $WORKSPACE' | ||
sh 'chmod +x -R ./eshopcontainers-e2etestsuite/retorchfiles/scripts' | ||
sh './eshopcontainers-e2etestsuite/retorchfiles/scripts/coilifecycles/coi-setup.sh' | ||
} | ||
} | ||
|
||
stage('test') { | ||
steps { | ||
sh "sleep 10" | ||
sh "mvn test" | ||
} | ||
} | ||
} | ||
|
||
stage('test') { | ||
|
||
sh "sleep 10" | ||
sh "mvn test" | ||
}// End test stage | ||
post { | ||
always { | ||
archiveArtifacts artifacts: '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 | ||
}//EndPostActions | ||
} | ||
post { | ||
//always { | ||
// archiveArtifacts artifacts: 'eshopcontainers-e2etestsuite/artifacts/*.csv', onlyIfSuccessful: true | ||
//} | ||
cleanup { | ||
sh """(eval \$CURRENT_DATE ; echo "Cleaning Environment ") | cat | tr '\n' ' ' """ | ||
sh './eshopcontainers-e2etestsuite/retorchfiles/scripts/coilifecycles/coi-teardown.sh' | ||
} | ||
} | ||
} |
20 changes: 16 additions & 4 deletions
20
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
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
6 changes: 3 additions & 3 deletions
6
eshopcontainers-e2etestsuite/retorchfiles/scripts/saveTJobLifecycledata.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
4 changes: 2 additions & 2 deletions
4
eshopcontainers-e2etestsuite/retorchfiles/scripts/writetime.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