My jenkins version is 2.346.1 and I run my jenkins jobs in a built-in node. While building, it shows like this on workspaces in jenkins UI : /var/lib/jenkins/workspace/quezonetech on built-in. This path is kinda a clickable link. Now, When I check this path in server, I can’t find my project folders. Why is that ? I thought while running jobs, we retrieve the project source codes into the workspaces and use it to build. Seems like I am missing something here .
It’s not a good idea to run your jobs on a built-in node security-wise.
That being said, the Jenkins workspace is a directory where Jenkins builds your projects.
When a job is run, Jenkins creates a workspace directory specific to that job and checks out the source code from your SCM into this directory.
The path /var/lib/jenkins/workspace/quezonetech that you see in the Jenkins UI is the path to this workspace directory on the Jenkins server.
The workspace directory may have been cleaned up.
Jenkins has a feature to clean up workspace directories to save disk space.
If this feature is enabled, the workspace directory may be deleted after the job is finished.
You can check if this feature is enabled in the job configuration.
You could also check the job’s console output in the Jenkins UI.
The console output should show the SCM checkout process and any errors.
To add to that if your Jenkins runs inside a docker container, the path inside docker might be different from the path on the host where the jenkins docker container runs
Hello @poddingue, Our project was run this way. Will move it to agents. One major thing is that, As part of profiling we are trying to run a single code base in different environments. And in one environment, the workspace seem correct with all checked out code in it. Only in this envt causes issue.I noticed we do have workspace clean up plugin installed. But I haven’t find any job specific configuration to manually clean-up the workspace after the build. And this is build console output :
Obtained Quezone-OnBoarding-java/Jenkinsfile from git https://gitlab.com/quezonetech/Quezone-onboarding.git
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/quezonetech
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: git
using credential Gitlab api token
> git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/quezonetech/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://gitlab.com/quezonetech/Quezone-onboarding.git # timeout=10
Fetching upstream changes from https://gitlab.com/quezonetech/Quezone-onboarding.git
> git --version # timeout=10
> git --version # 'git version 2.7.4'
using GIT_ASKPASS to set credentials
> git fetch --tags --progress https://gitlab.com/quezonetech/Quezone-onboarding.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/quezone-test^{commit} # timeout=10
Checking out Revision 0916ba1a384ad5521afdee2edb4d10a28965c9b2 (refs/remotes/origin/quezone-test)
> git config core.sparsecheckout # timeout=10
> git checkout -f 0916ba1a384ad5521afdee2edb4d10a28965c9b2 # timeout=10
Commit message: "- Handled unwanted mail getting triggered in email re-trigger API even if customer have no email Id"
> git rev-list --no-walk 3ffbd6ded3d2904f35d883488cb60df6df753f7e # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Modify Properties)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
active Profile : au-test
[Pipeline] sh
+ sed -i s/^spring\.profiles\.active=.*/spring.profiles.active=au-test/ /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/main/resources/application.properties
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build config)
[Pipeline] echo
-=- Build data config -=-
[Pipeline] dir
Running in /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java
[Pipeline] {
[Pipeline] sh
+ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] onboarding-service
[INFO] onboarding-data-mgr
[INFO] onboarding-endpoints
[INFO] onboarding-config
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building onboarding-service 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ onboarding-service ---
[INFO] Deleting /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/target
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ onboarding-service ---
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/pom.xml to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-service/0.1.0/onboarding-service-0.1.0.pom
[INFO] Building onboarding-data-mgr 1.0
[INFO] ------------------------------------------------------------------------
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ onboarding-data-mgr ---
[INFO] Deleting /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ onboarding-data-mgr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/resources
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ onboarding-data-mgr ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 489 source files to /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target/classes
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/java/com/quezone/base/AbstractRepository.java: Some input files use or override a deprecated API.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/java/com/quezone/base/AbstractRepository.java: Recompile with -Xlint:deprecation for details.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/java/com/quezone/appointment/repositories/CustomerFlowMongoTemplate.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/java/com/quezone/appointment/repositories/CustomerFlowMongoTemplate.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ onboarding-data-mgr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ onboarding-data-mgr ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ onboarding-data-mgr ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ onboarding-data-mgr ---
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target/onboarding-data-mgr.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ onboarding-data-mgr ---
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target/onboarding-data-mgr.jar to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-data-mgr/1.0/onboarding-data-mgr-1.0.jar
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/pom.xml to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-data-mgr/1.0/onboarding-data-mgr-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building onboarding-endpoints 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ onboarding-endpoints ---
[INFO] Deleting /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ onboarding-endpoints ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/resources
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ onboarding-endpoints ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 62 source files to /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target/classes
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/java/com/quezone/rest/appointment/ClientCredentialProvider.java: Some input files use or override a deprecated API.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/java/com/quezone/rest/appointment/ClientCredentialProvider.java: Recompile with -Xlint:deprecation for details.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/java/com/quezone/rest/survey/SurveyAnswerController.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/java/com/quezone/rest/survey/SurveyAnswerController.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ onboarding-endpoints ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ onboarding-endpoints ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ onboarding-endpoints ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ onboarding-endpoints ---
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target/onboarding-endpoints.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ onboarding-endpoints ---
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target/onboarding-endpoints.jar to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-endpoints/0.1.0/onboarding-endpoints-0.1.0.jar
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/pom.xml to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-endpoints/0.1.0/onboarding-endpoints-0.1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building onboarding-config 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ onboarding-config ---
[INFO] Deleting /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ onboarding-config ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 8 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ onboarding-config ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target/classes
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/main/java/com/quezone/onboarding/config/swagger/SwaggerConfig.java: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/main/java/com/quezone/onboarding/config/swagger/SwaggerConfig.java uses or overrides a deprecated API.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/main/java/com/quezone/onboarding/config/swagger/SwaggerConfig.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ onboarding-config ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ onboarding-config ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ onboarding-config ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ onboarding-config ---
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target/onboarding-service.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.0.RELEASE:repackage (repackage) @ onboarding-config ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ onboarding-config ---
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target/onboarding-service.jar to /var/lib/jenkins/.m2/repository/info/quezone/onboarding-config/0.1.0/onboarding-config-0.1.0.jar
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/pom.xml to /var/lib/jenkins/.m2/repository/info/quezone/onboarding-config/0.1.0/onboarding-config-0.1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] onboarding-service ................................. SUCCESS [ 0.560 s]
[INFO] onboarding-data-mgr ................................ SUCCESS [ 15.483 s]
[INFO] onboarding-endpoints ............................... SUCCESS [ 5.353 s]
[INFO] onboarding-config .................................. SUCCESS [ 7.017 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.692 s
[INFO] Finished at: 2024-02-08T12:17:20+00:00
[INFO] Final Memory: 74M/441M
[INFO] ------------------------------------------------------------------------
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build Docker image)
[Pipeline] dir
Running in /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java
[Pipeline] {
[Pipeline] echo
-=- build Docker image -=-
[Pipeline] sh
+ mvn clean install dockerfile:build
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] onboarding-service
[INFO] onboarding-data-mgr
[INFO] onboarding-endpoints
[INFO] onboarding-config
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building onboarding-service 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ onboarding-service ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ onboarding-service ---
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/pom.xml to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-service/0.1.0/onboarding-service-0.1.0.pom
[INFO]
[INFO] --- dockerfile-maven-plugin:1.3.4:build (default-cli) @ onboarding-service ---
[INFO] Building Docker context /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java
[INFO]
[INFO] Image will be built as quezone/onboarding-service:latest
[INFO]
[INFO] Step 1/5 : FROM openjdk:8-jdk-alpine
[INFO]
[INFO] Pulling from library/openjdk
[INFO] Digest: sha256:94792824df2df33402f201713f932b58cb9de94a0cd524164a0f2283343547b3
[INFO] Status: Image is up to date for openjdk:8-jdk-alpine
[INFO] ---> a3562aa0b991
[INFO] Step 2/5 : VOLUME /tmp
[INFO]
[INFO] ---> Using cache
[INFO] ---> 0ec1a0356fbe
[INFO] Step 3/5 : ADD onboarding-config/target/onboarding-service.jar onboarding-service.jar
[INFO]
[INFO] ---> db7e571905a0
[INFO] Step 4/5 : ENV JAVA_OPTS=""
[INFO]
[INFO] ---> Running in e8493dca4549
[INFO] Removing intermediate container e8493dca4549
[INFO] ---> 8b191f653828
[INFO] Step 5/5 : ENTRYPOINT [ "sh", "-c", "java -jar /onboarding-service.jar" ]
[INFO]
[INFO] ---> Running in 71ba41a706ad
[INFO] Removing intermediate container 71ba41a706ad
[INFO] ---> 1e29de8293d6
[INFO] Successfully built 1e29de8293d6
[INFO] Successfully tagged quezone/onboarding-service:latest
[INFO]
[INFO] Detected build of image with id 1e29de8293d6
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/target/onboarding-service-docker-info.jar
[INFO] Successfully built quezone/onboarding-service:latest
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building onboarding-data-mgr 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ onboarding-data-mgr ---
[INFO] Deleting /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ onboarding-data-mgr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/resources
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ onboarding-data-mgr ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 489 source files to /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target/classes
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/java/com/quezone/base/AbstractRepository.java: Some input files use or override a deprecated API.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/java/com/quezone/base/AbstractRepository.java: Recompile with -Xlint:deprecation for details.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/java/com/quezone/appointment/repositories/CustomerFlowMongoTemplate.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/main/java/com/quezone/appointment/repositories/CustomerFlowMongoTemplate.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ onboarding-data-mgr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ onboarding-data-mgr ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ onboarding-data-mgr ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ onboarding-data-mgr ---
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target/onboarding-data-mgr.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ onboarding-data-mgr ---
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target/onboarding-data-mgr.jar to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-data-mgr/1.0/onboarding-data-mgr-1.0.jar
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/pom.xml to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-data-mgr/1.0/onboarding-data-mgr-1.0.pom
[INFO]
[INFO] --- dockerfile-maven-plugin:1.3.4:build (default-cli) @ onboarding-data-mgr ---
[INFO] Building Docker context /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr
[INFO]
[INFO] Image will be built as quezone/onboarding-data-mgr:latest
[INFO]
[INFO] Step 1/2 : FROM openjdk:8-jdk-alpine
[INFO]
[INFO] Pulling from library/openjdk
[INFO] Digest: sha256:94792824df2df33402f201713f932b58cb9de94a0cd524164a0f2283343547b3
[INFO] Status: Image is up to date for openjdk:8-jdk-alpine
[INFO] ---> a3562aa0b991
[INFO] Step 2/2 : VOLUME /tmp
[INFO]
[INFO] ---> Using cache
[INFO] ---> 0ec1a0356fbe
[INFO] Successfully built 0ec1a0356fbe
[INFO] Successfully tagged quezone/onboarding-data-mgr:latest
[INFO]
[INFO] Detected build of image with id 0ec1a0356fbe
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-data-mgr/target/onboarding-data-mgr-docker-info.jar
[INFO] Successfully built quezone/onboarding-data-mgr:latest
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building onboarding-endpoints 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ onboarding-endpoints ---
[INFO] Deleting /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ onboarding-endpoints ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/resources
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ onboarding-endpoints ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 62 source files to /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target/classes
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/java/com/quezone/rest/appointment/ClientCredentialProvider.java: Some input files use or override a deprecated API.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/java/com/quezone/rest/appointment/ClientCredentialProvider.java: Recompile with -Xlint:deprecation for details.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/java/com/quezone/rest/survey/SurveyAnswerController.java: Some input files use unchecked or unsafe operations.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/main/java/com/quezone/rest/survey/SurveyAnswerController.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ onboarding-endpoints ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ onboarding-endpoints ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ onboarding-endpoints ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ onboarding-endpoints ---
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target/onboarding-endpoints.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ onboarding-endpoints ---
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target/onboarding-endpoints.jar to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-endpoints/0.1.0/onboarding-endpoints-0.1.0.jar
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/pom.xml to /var/lib/jenkins/.m2/repository/com/quezone/onboarding-endpoints/0.1.0/onboarding-endpoints-0.1.0.pom
[INFO]
[INFO] --- dockerfile-maven-plugin:1.3.4:build (default-cli) @ onboarding-endpoints ---
[INFO] Building Docker context /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints
[INFO]
[INFO] Image will be built as quezone/onboarding-endpoints:latest
[INFO]
[INFO] Step 1/2 : FROM openjdk:8-jdk-alpine
[INFO]
[INFO] Pulling from library/openjdk
[INFO] Digest: sha256:94792824df2df33402f201713f932b58cb9de94a0cd524164a0f2283343547b3
[INFO] Status: Image is up to date for openjdk:8-jdk-alpine
[INFO] ---> a3562aa0b991
[INFO] Step 2/2 : VOLUME /tmp
[INFO]
[INFO] ---> Using cache
[INFO] ---> 0ec1a0356fbe
[INFO] Successfully built 0ec1a0356fbe
[INFO] Successfully tagged quezone/onboarding-endpoints:latest
[INFO]
[INFO] Detected build of image with id 0ec1a0356fbe
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-endpoints/target/onboarding-endpoints-docker-info.jar
[INFO] Successfully built quezone/onboarding-endpoints:latest
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building onboarding-config 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ onboarding-config ---
[INFO] Deleting /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ onboarding-config ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 8 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ onboarding-config ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target/classes
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/main/java/com/quezone/onboarding/config/swagger/SwaggerConfig.java: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/main/java/com/quezone/onboarding/config/swagger/SwaggerConfig.java uses or overrides a deprecated API.
[INFO] /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/main/java/com/quezone/onboarding/config/swagger/SwaggerConfig.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ onboarding-config ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ onboarding-config ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ onboarding-config ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ onboarding-config ---
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target/onboarding-service.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.3.0.RELEASE:repackage (repackage) @ onboarding-config ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ onboarding-config ---
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target/onboarding-service.jar to /var/lib/jenkins/.m2/repository/info/quezone/onboarding-config/0.1.0/onboarding-config-0.1.0.jar
[INFO] Installing /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/pom.xml to /var/lib/jenkins/.m2/repository/info/quezone/onboarding-config/0.1.0/onboarding-config-0.1.0.pom
[INFO]
[INFO] --- dockerfile-maven-plugin:1.3.4:build (default-cli) @ onboarding-config ---
[INFO] Building Docker context /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config
[INFO]
[INFO] Image will be built as quezone/onboarding-config:latest
[INFO]
[INFO] Step 1/2 : FROM openjdk:8-jdk-alpine
[INFO]
[INFO] Pulling from library/openjdk
[INFO] Digest: sha256:94792824df2df33402f201713f932b58cb9de94a0cd524164a0f2283343547b3
[INFO] Status: Image is up to date for openjdk:8-jdk-alpine
[INFO] ---> a3562aa0b991
[INFO] Step 2/2 : VOLUME /tmp
[INFO]
[INFO] ---> Using cache
[INFO] ---> 0ec1a0356fbe
[INFO] Successfully built 0ec1a0356fbe
[INFO] Successfully tagged quezone/onboarding-config:latest
[INFO]
[INFO] Detected build of image with id 0ec1a0356fbe
[INFO] Building jar: /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java/onboarding-config/target/onboarding-service-docker-info.jar
[INFO] Successfully built quezone/onboarding-config:latest
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] onboarding-service ................................. SUCCESS [ 25.803 s]
[INFO] onboarding-data-mgr ................................ SUCCESS [ 20.470 s]
[INFO] onboarding-endpoints ............................... SUCCESS [ 9.793 s]
[INFO] onboarding-config .................................. SUCCESS [ 21.677 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:19 min
[INFO] Finished at: 2024-02-08T12:18:42+00:00
[INFO] Final Memory: 82M/461M
[INFO] ------------------------------------------------------------------------
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Stop Docker container)
[Pipeline] echo
-=- Stop Docker container -=-
[Pipeline] catchError
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ docker ps -a --format {{.Names}}
+ grep -q onboarding-service
[Pipeline] sh
+ docker rm -f onboarding-service
onboarding-service
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // catchError
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Run Docker image)
[Pipeline] echo
-=- run Docker image -=-
[Pipeline] dir
Running in /var/lib/jenkins/workspace/quezonetech/Quezone-OnBoarding-java
[Pipeline] {
[Pipeline] sh
+ docker-compose up -d
redisserver is up-to-date
mongodb is up-to-date
Creating onboarding-service ...
e[3Ae[2K
Creating onboarding-service ...
e[3B
[Pipeline] }
[Pipeline] // dir
Hello @mawinter69, Yeah, Our project is JDK 1.8. So, Using it currently on 2.346.1 which is that latest one which can be run on JDK 1.8. Have thought about running jenkins as a container, so that we can have latest jenkins version and keep using our project version as it is. Thanks
@poddingue Btw, I guess this has no reason that my source code is absent in workspace. I guess the console logs I have added makes sense ? What am I missing ??
Thanks !! I would like to close this issue as it got resolved in next build. Seems like I had added a config specific to job to clean-up builds after certain time. Now, Workspace seems clear.