From e21964ee465e985e578a441fe962f458ba80ea00 Mon Sep 17 00:00:00 2001 From: William Petit Date: Tue, 23 Apr 2024 10:02:26 +0200 Subject: [PATCH] chore: add jenkins pipeline --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..1044d78 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,19 @@ +@Library('cadoles') _ + +// Utilisation du pipeline "standard" +// Voir https://forge.cadoles.com/Cadoles/Jenkins/src/branch/master/doc/tutorials/standard-make-pipeline.md +standardMakePipeline([ + 'dockerfileExtension': ''' + RUN apt-get update \ + && apt-get install -y zip jq + + RUN wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz \ + && rm -rf /usr/local/go \ + && tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz + + ENV PATH="${PATH}:/usr/local/go/bin" + ''', + 'credentials': [ + usernamePassword(credentialsId: 'kipp-credentials', usernameVariable: 'MKT_GITEA_RELEASE_USERNAME', passwordVariable: 'MKT_GITEA_RELEASE_PASSWORD') + ] +]) \ No newline at end of file