From 7201f0c392c06a0be0f44cfc3df96acce887eb51 Mon Sep 17 00:00:00 2001 From: Cara Wang Date: Jun 29 2020 08:37:49 +0000 Subject: Fix the syntax error of the pipelines --- diff --git a/openshift/containers/jenkins-slave/Dockerfile b/openshift/containers/jenkins-slave/Dockerfile new file mode 100644 index 0000000..f2e2576 --- /dev/null +++ b/openshift/containers/jenkins-slave/Dockerfile @@ -0,0 +1,9 @@ +FROM registry.access.redhat.com/rhel7:latest +LABEL \ + name="testing application" \ + vendor="testing developers" \ + license="GPLv2+" \ + build-date="" +COPY run.sh /tmp +ENTRYPOINT ["/tmp/run.sh"] +CMD ["/bin/sleep","360000"] diff --git a/openshift/pipelines/c3i-role-vars.yml b/openshift/pipelines/c3i-role-vars.yml index 6ce9bc5..3b9df86 100644 --- a/openshift/pipelines/c3i-role-vars.yml +++ b/openshift/pipelines/c3i-role-vars.yml @@ -1,6 +1,7 @@ -c3i_component: testing_c3i_libary +c3i_component: errata-tool c3i_build_and_test_snippet: snippets/testing-build-test.groovy c3i_build_agent_snippet: snippets/build-agent.groovy +c3i_integration_test_snippet: snippets/testing-build-test.groovy c3i_mail_address: wlin@redhat.com diff --git a/openshift/pipelines/snippets/testing-build-test.groovy b/openshift/pipelines/snippets/testing-build-test.groovy index 0b6d782..3cdc3c3 100644 --- a/openshift/pipelines/snippets/testing-build-test.groovy +++ b/openshift/pipelines/snippets/testing-build-test.groovy @@ -2,9 +2,7 @@ stage('Step 1 - Prepare') { steps { echo 'step 1' } - } - } -} +}// stage stage('Step 2 - Check') { failFast false parallel { @@ -19,19 +17,19 @@ stage('Step 2 - Check') { } } } -} +} //stage stage('Step 3 - Testing') { steps { sh 'echo run testing' } -} +} //stage stage('Build container') { steps { echo "Create templates with parameters, build container and push to the repo" } -} +} //stage stage("Functional tests phase") { steps { echo "Container image will be tested." } -} +} //stage