update: change code on checkout application repo stage
This commit is contained in:
parent
95ad1c24df
commit
0767b42851
|
|
@ -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) \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue