From dd3413a0bb2172ced8c5859e0aaa11443bd4455d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 12 Sep 2023 10:28:39 +0200 Subject: [PATCH] add a simple test --- automation/Dockerfile | 7 +++++++ automation/Jenkinsfile | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 automation/Jenkinsfile diff --git a/automation/Dockerfile b/automation/Dockerfile index 12c4441..013f8cd 100644 --- a/automation/Dockerfile +++ b/automation/Dockerfile @@ -4,3 +4,10 @@ RUN apt-get update RUN apt-get --yes upgrade # Required in case tzdata is a installed, won't install otherwise ARG DEBIAN_FRONTEND=noninteractive + +#ssh needs a valid user to work +RUN adduser --uid 114 jenkins + +#add documentation server to known hosts +RUN echo "|1|/LzCV4BuTmTb2wKnD146l9fTKgQ=|NJJtVjvWbtRt8OYqFgcYRnMQyVw= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNL8ssTonYtgiR/6RRlSIK9WU1ywOcJmxFTLcEblAwH7oifZzmYq3XRfwXrgfMpylEfMFYfCU8JRqtmi19xc21A=" >> /etc/ssh/ssh_known_hosts +RUN echo "|1|CcBvBc3EG03G+XM5rqRHs6gK/Gg=|oGeJQ+1I8NGI2THIkJsW92DpTzs= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNL8ssTonYtgiR/6RRlSIK9WU1ywOcJmxFTLcEblAwH7oifZzmYq3XRfwXrgfMpylEfMFYfCU8JRqtmi19xc21A=" >> /etc/ssh/ssh_known_hosts diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile new file mode 100644 index 0000000..b1c2c77 --- /dev/null +++ b/automation/Jenkinsfile @@ -0,0 +1,10 @@ +pipeline { + agent { dockerfile true } + stages { + stage('Deployment') { + steps { + sh 'rsync -h' + } + } + } +}