Browse Source

Fix copying files via scp

Change-Id: I1e446803b24fdd1b7ea302f08deadbc64667d249
Sergey Reshetnyak 2 years ago
parent
commit
6cbcc7d9ca
2 changed files with 4 additions and 3 deletions
  1. 1
    0
      service/files/defaults.yaml
  2. 3
    3
      service/files/run-tempest.sh.j2

+ 1
- 0
service/files/defaults.yaml View File

@@ -20,6 +20,7 @@ configs:
20 20
         port: 22
21 21
         private_key: ""
22 22
         publish: false
23
+        server_path: /var/www/html/
23 24
         site: http://localhost
24 25
         username: jenkins
25 26
       volume:

+ 3
- 3
service/files/run-tempest.sh.j2 View File

@@ -12,8 +12,8 @@ function publish_artifacts {
12 12
     rally verify results --html --output-file "${path}/result.html"
13 13
     # TODO: add junit report
14 14
 
15
-    scp -i /var/lib/rally/static.pem "${path}" {{ rally.tempest.static.username }}@{{ rally.tempest.static.host }}:{{ rally.tempest.static.port }}:
16
-    echo "Artifacts are located to {{ rally.tempest.static.site }}/${path}"
15
+    scp -o StrictHostKeyChecking=no -r -i /var/lib/rally/static.pem -p {{ rally.tempest.static.port }} "${path}" {{ rally.tempest.static.username }}@{{ rally.tempest.static.host }}:{{ rally.tempest.static.server_path }}
16
+    echo "Artifacts are located to {{ rally.tempest.static.site }}/{{ rally.tempest.static.path }}"
17 17
 }
18 18
 
19 19
 # OS credentials
@@ -46,7 +46,7 @@ rally verify showconfig
46 46
 
47 47
 os_release="{{ rally.tempest.openstack_release }}"
48 48
 
49
-rally verify start --skip-list "/var/lib/rally/${os_release}-skip-list.list"
49
+rally verify start --set smoke --skip-list "/var/lib/rally/${os_release}-skip-list.list"
50 50
 
51 51
 {% if rally.tempest.static.publish %}
52 52
 publish_artifacts

Loading…
Cancel
Save