X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fci-pipelines%2Fci_stage_4.groovy;fp=jenkins%2Fci-pipelines%2Fci_stage_4.groovy;h=928fdd8d03f6f25dca5bf4840a65d55c7b87ed8a;hb=8343e3fc441f1669ae906e85699e3f244dddc0b0;hp=0000000000000000000000000000000000000000;hpb=d235f50e80677afa48fb990e0712266592549bc1;p=osm%2Fdevops.git diff --git a/jenkins/ci-pipelines/ci_stage_4.groovy b/jenkins/ci-pipelines/ci_stage_4.groovy new file mode 100644 index 00000000..928fdd8d --- /dev/null +++ b/jenkins/ci-pipelines/ci_stage_4.groovy @@ -0,0 +1,55 @@ +/* Copyright 2017 Sandvine + * + * All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. You may obtain + * a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +properties([ + parameters([ + string(defaultValue: 'osm-stage_3', description: '', name: 'UPSTREAM_PROJECT'), + string(defaultValue: 'release', description: '', name: 'RELEASE'), + string(defaultValue: 'pipeline', description: '', name: 'NODE'), + ]) +]) + +node("${params.NODE}") { + + stage("checkout") { + checkout scm + } + + ci_helper = load "jenkins/ci-pipelines/ci_helper.groovy" + + stage("get artifacts") { + // grab the upstream artifact name + step ([$class: 'CopyArtifact', + projectName: "${params.UPSTREAM_PROJECT}/${BRANCH_NAME}"]) + } + + container_name = sh(returnStdout: true, script: 'cat build_version.txt').trim() + + stage("Test") { + ci_helper.systest_run(container_name, 'smoke') + junit '*.xml' + } + +/* os_credentials = "OS_AUTH_URL=${params.OS_AUTH_URL} OS_USERNAME=${params.OS_USERNAME} OS_PASSWORD=${params.OS_PASSWORD} OS_PROJECT_NAME=${params.OS_PROJECT_NAME}" + stage("cirros-test") { + sh """ + make -C systest OSM_HOSTNAME=${osm_ip} ${os_credentials} cirros + """ + junit 'systest/reports/pytest-cirros.xml' + } +*/ +}