+ Archive(id).call()
+ }
+ }
+}
+
+def Report(environment_name, ip_family) {
+ return {
+ // Collect logs
+ def command = "cd ./test/e2e ; ./environment/$environment_name/$ip_family/test.sh on_failure"
+ ExecSh(command).call()
+ Archive('Report').call()
+ }
+}
+
+def Archive(id) {
+ return {
+ try {
+ sh "tar -czvf ${id}.tar.gz -C _output ."
+ archiveArtifacts artifacts: "${id}.tar.gz", followSymlinks: false
+ sh 'rm -rf _output ; mkdir -p _output'
+ } catch (Exception e) {