From ccf901a3f98cdfa4d92ec9c9e5f4028f1b281601 Mon Sep 17 00:00:00 2001 From: vinay-k-swift-nav Date: Mon, 20 Mar 2023 16:36:34 +0530 Subject: [PATCH] Added updates in jenkinsfile --- Dockerfile | 24 ++++++++++++------------ Jenkinsfile | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index a943b36..907987c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,18 @@ -# # Use a base image with C++ compiler and libraries installed -# FROM gcc:latest +# Use a base image with C++ compiler and libraries installed +FROM gcc:latest -# RUN apt-get update && apt-get install -y git -# RUN git clone https://github.com/vinay-k-swift-nav/HelloUniverse /app +RUN apt-get update && apt-get install -y git +RUN git clone https://github.com/bablooswiftnav/HelloUniverse /app -# # Set the working directory inside the container -# WORKDIR /home/vinay/hellouniverse +# Set the working directory inside the container +WORKDIR /home/vinay/hellouniverse -# # Copy the C++ source code into the container -# COPY . . +# Copy the C++ source code into the container +COPY . . -# # Compile the C++ code and generate the executable -# RUN g++ -o hellouniverse /app/index.cpp +# Compile the C++ code and generate the executable +RUN g++ -o hellouniverse /app/index.cpp -# # Set the entrypoint for the container -# ENTRYPOINT ["/hellouniverse/app"] +# Set the entrypoint for the container +ENTRYPOINT ["/hellouniverse/app"] diff --git a/Jenkinsfile b/Jenkinsfile index ba0cd85..8679328 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline{ stages{ stage("git checkout"){ steps{ - checkout scmGit(branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/vinay-k-swift-nav/HelloUniverse']]) + checkout scmGit(branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/bablooswiftnav/HelloUniverse']]) } } stage("Run docker image"){