From 2e62db298e7640b61a705bc1712afe00184ebf3f Mon Sep 17 00:00:00 2001 From: Gareth Healy Date: Mon, 18 Dec 2023 20:33:31 +0000 Subject: [PATCH] added clone test to jenkins agents --- jenkins-agents/jenkins-agent-ansible/Jenkinsfile.test | 6 ++++++ jenkins-agents/jenkins-agent-arachni/Jenkinsfile.test | 6 ++++++ jenkins-agents/jenkins-agent-argocd/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-conftest/Jenkinsfile.test | 9 ++++++--- jenkins-agents/jenkins-agent-cosign/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-erlang/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-golang/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-graalvm/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-gradle/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-helm/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-hugo/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-image-mgmt/Jenkinsfile.test | 6 ++++++ jenkins-agents/jenkins-agent-mongodb/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-mvn/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-npm/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-python/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-ruby/Jenkinsfile.test | 8 ++++++-- jenkins-agents/jenkins-agent-rust/Jenkinsfile.test | 8 ++++++-- 18 files changed, 108 insertions(+), 31 deletions(-) diff --git a/jenkins-agents/jenkins-agent-ansible/Jenkinsfile.test b/jenkins-agents/jenkins-agent-ansible/Jenkinsfile.test index a63afefc5..dd0254091 100644 --- a/jenkins-agents/jenkins-agent-ansible/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-ansible/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ diff --git a/jenkins-agents/jenkins-agent-arachni/Jenkinsfile.test b/jenkins-agents/jenkins-agent-arachni/Jenkinsfile.test index 505531fdc..01602ad0b 100644 --- a/jenkins-agents/jenkins-agent-arachni/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-arachni/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ diff --git a/jenkins-agents/jenkins-agent-argocd/Jenkinsfile.test b/jenkins-agents/jenkins-agent-argocd/Jenkinsfile.test index 9b315457a..da14ee97e 100644 --- a/jenkins-agents/jenkins-agent-argocd/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-argocd/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -11,7 +17,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-conftest/Jenkinsfile.test b/jenkins-agents/jenkins-agent-conftest/Jenkinsfile.test index 92d7ff5c1..88cf972c2 100644 --- a/jenkins-agents/jenkins-agent-conftest/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-conftest/Jenkinsfile.test @@ -4,17 +4,20 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ conftest --version bats --version yq --version - echo "🦇" """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-cosign/Jenkinsfile.test b/jenkins-agents/jenkins-agent-cosign/Jenkinsfile.test index e50971292..04efaaaae 100644 --- a/jenkins-agents/jenkins-agent-cosign/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-cosign/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -11,7 +17,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-erlang/Jenkinsfile.test b/jenkins-agents/jenkins-agent-erlang/Jenkinsfile.test index 47e84c6b8..f37d72e59 100644 --- a/jenkins-agents/jenkins-agent-erlang/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-erlang/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -12,7 +18,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-golang/Jenkinsfile.test b/jenkins-agents/jenkins-agent-golang/Jenkinsfile.test index 6d5b2f297..00adc6faf 100644 --- a/jenkins-agents/jenkins-agent-golang/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-golang/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -12,7 +18,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-graalvm/Jenkinsfile.test b/jenkins-agents/jenkins-agent-graalvm/Jenkinsfile.test index de4acded2..cbe384398 100644 --- a/jenkins-agents/jenkins-agent-graalvm/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-graalvm/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -17,7 +23,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-gradle/Jenkinsfile.test b/jenkins-agents/jenkins-agent-gradle/Jenkinsfile.test index 494480669..17dd83be5 100644 --- a/jenkins-agents/jenkins-agent-gradle/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-gradle/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -12,7 +18,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-helm/Jenkinsfile.test b/jenkins-agents/jenkins-agent-helm/Jenkinsfile.test index 7e02a7b6b..a923eb850 100644 --- a/jenkins-agents/jenkins-agent-helm/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-helm/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -21,7 +27,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-hugo/Jenkinsfile.test b/jenkins-agents/jenkins-agent-hugo/Jenkinsfile.test index 7e70f7778..c547d8d2d 100644 --- a/jenkins-agents/jenkins-agent-hugo/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-hugo/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -11,7 +17,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-image-mgmt/Jenkinsfile.test b/jenkins-agents/jenkins-agent-image-mgmt/Jenkinsfile.test index 31da077a7..4f8c68b0b 100644 --- a/jenkins-agents/jenkins-agent-image-mgmt/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-image-mgmt/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ diff --git a/jenkins-agents/jenkins-agent-mongodb/Jenkinsfile.test b/jenkins-agents/jenkins-agent-mongodb/Jenkinsfile.test index da531fcf4..c64910503 100644 --- a/jenkins-agents/jenkins-agent-mongodb/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-mongodb/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -11,7 +17,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-mvn/Jenkinsfile.test b/jenkins-agents/jenkins-agent-mvn/Jenkinsfile.test index ab1978add..57335855d 100644 --- a/jenkins-agents/jenkins-agent-mvn/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-mvn/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -11,7 +17,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-npm/Jenkinsfile.test b/jenkins-agents/jenkins-agent-npm/Jenkinsfile.test index 73c3189f2..2428b9a68 100644 --- a/jenkins-agents/jenkins-agent-npm/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-npm/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -12,7 +18,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-python/Jenkinsfile.test b/jenkins-agents/jenkins-agent-python/Jenkinsfile.test index d30d38339..483c9b641 100644 --- a/jenkins-agents/jenkins-agent-python/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-python/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -12,7 +18,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-ruby/Jenkinsfile.test b/jenkins-agents/jenkins-agent-ruby/Jenkinsfile.test index 42d3a2905..b42323cd3 100644 --- a/jenkins-agents/jenkins-agent-ruby/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-ruby/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -12,7 +18,5 @@ pipeline { """ } } - } - } diff --git a/jenkins-agents/jenkins-agent-rust/Jenkinsfile.test b/jenkins-agents/jenkins-agent-rust/Jenkinsfile.test index 2811fa70c..c385f4630 100644 --- a/jenkins-agents/jenkins-agent-rust/Jenkinsfile.test +++ b/jenkins-agents/jenkins-agent-rust/Jenkinsfile.test @@ -4,6 +4,12 @@ pipeline { } stages { + stage ('Run Clone Test') { + steps { + sh "git clone https://github.com/redhat-cop/containers-quickstarts.git" + } + } + stage ('Run Test') { steps { sh """ @@ -11,7 +17,5 @@ pipeline { """ } } - } - }