diff --git a/Dockerfile.jenkins b/Dockerfile.jenkins index 520da4f..e09eb7a 100644 --- a/Dockerfile.jenkins +++ b/Dockerfile.jenkins @@ -2,7 +2,21 @@ FROM jenkins/jenkins:2.516.2-jdk21 USER root -RUN apt-get update && apt-get install -y lsb-release +RUN apt-get update && apt-get install -y \ + wget \ + curl \ + git \ + bash \ + yq \ + jq \ + zip \ + unzip \ + tar \ + lsb-release \ + ca-certificates \ + apt-transport-https \ + gnupg + RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \ https://download.docker.com/linux/debian/gpg RUN echo "deb [arch=$(dpkg --print-architecture) \ diff --git a/Jenkinsfile b/Jenkinsfile index 557e3e5..cc232b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,6 @@ pipeline { agent any environment { - // --- Konfigurasi umum --- REGISTRY = "docker.io/adelyao" APP_NAME = "employee" MANIFEST_REPO = "https://git.winteraccess.id/adel/Employee-manifest.git" @@ -41,9 +40,7 @@ pipeline { stage('Checkout Application Repo') { steps { - script { - git branch: 'main', url: env.APP_REPO - } + checkout scm } }