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
|
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 \
|
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \
|
||||||
https://download.docker.com/linux/debian/gpg
|
https://download.docker.com/linux/debian/gpg
|
||||||
RUN echo "deb [arch=$(dpkg --print-architecture) \
|
RUN echo "deb [arch=$(dpkg --print-architecture) \
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
// --- Konfigurasi umum ---
|
|
||||||
REGISTRY = "docker.io/adelyao"
|
REGISTRY = "docker.io/adelyao"
|
||||||
APP_NAME = "employee"
|
APP_NAME = "employee"
|
||||||
MANIFEST_REPO = "https://git.winteraccess.id/adel/Employee-manifest.git"
|
MANIFEST_REPO = "https://git.winteraccess.id/adel/Employee-manifest.git"
|
||||||
|
|
@ -41,9 +40,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Checkout Application Repo') {
|
stage('Checkout Application Repo') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
checkout scm
|
||||||
git branch: 'main', url: env.APP_REPO
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue