blob: ce0cdcc8ae4cf1d9169f2be78a7b3957774841b6 [file] [log] [blame]
Suchitra.Vemuri89c48a72016-12-21 12:46:36 -08001node ('build') {
Suchitra.Vemurifbb50dc2016-12-21 13:15:54 -08002 stage 'Config'
3 checkout([$class: 'RepoScm', currentBranch: true, manifestRepositoryUrl: 'https://gerrit.opencord.org/manifest', quiet: true])
4
Suchitra.Vemuri89c48a72016-12-21 12:46:36 -08005 stage('Build') {
6 sh '$TARGET_MACHINE_SSH_COMMAND "\
7 cd ~/service-profile/frontend; \
8 make rm; \
9 make local_containers; \
10 make" '
11 }
12 stage('Test') {
13 sh '$TARGET_MACHINE_SSH_COMMAND "\
14 cd ~/cord-tester/src/test/cord-api/Properties/; \
15 cp RestApiProperties.py RestApiProperties.py.copy; \
16 sed -i $SET_SERVER_IP_COMMAND RestApiProperties.py; \
17 sed -i $SET_SERVER_PORT_COMMAND RestApiProperties.py; \
18 cd ~/cord-tester/src/test/cord-api/Tests/; \
19 rm -r ../Log; \
20 pybot -d ../Log -T ServiceTest.txt; \
21 pybot -d ../Log -T Users.txt; \
22 pybot -d ../Log -T UtilsSynchronizer.txt; \
23 cd ~/cord-tester/src/test/cord-api/Properties/; \
24 mv RestApiProperties.py.copy RestApiProperties.py; \" '
25 }
26 stage('Publish') {
27 sh 'rm -r RobotLogs; mkdir RobotLogs'
28 sh 'sshpass -p $TARGET_MACHINE_PASSWORD scp -r $TARGET_MACHINE_USERNAME@$TARGET_MACHINE_IP:~/cord-tester/src/test/cord-api/Log/* ./RobotLogs'
29 step([$class: 'RobotPublisher',
30 disableArchiveOutput: false,
31 logFileName: 'RobotLogs/log*.html',
32 otherFiles: '',
33 outputFileName: 'RobotLogs/output*.xml',
34 outputPath: '.',
35 passThreshold: 100,
36 reportFileName: 'RobotLogs/report*.html',
37 unstableThreshold: 0]);
38 }
39}