---
title: "Comment by Dirceu Pavon on \"Jenkins Pipeline for Java based application using Maven, SonarQube, Argo CD and Kubernetes\" | Hashnode"
description: "Thanks Sunita. I built my own image agent with the jdk 17 but I&#39;m getting error &quot;fatal: not in a git directory&quot; when running git commands. Looks l"
url: "https://hashnode.com/posts/jenkins-pipeline-for-java-based-application-using-maven-sonarqube-argo-cd-and-kubernetes/6433c5160ed6fbd4103f154c/comment/644ea1939dd30fbeaf4caf97"
---

[Discussion](https://hashnode.com/posts/jenkins-pipeline-for-java-based-application-using-maven-sonarqube-argo-cd-and-kubernetes/6433c5160ed6fbd4103f154c)

Comment [Jenkins Pipeline for Java based application using Maven, SonarQube, Argo CD and Kubernetes](https://hashnode.com/posts/jenkins-pipeline-for-java-based-application-using-maven-sonarqube-argo-cd-and-kubernetes/6433c5160ed6fbd4103f154c)

[Dirceu Pavon](https://hashnode.com/@dirceubb)

[Apr 30, 2023](https://hashnode.com/posts/jenkins-pipeline-for-java-based-application-using-maven-sonarqube-argo-cd-and-kubernetes/6433c5160ed6fbd4103f154c/comment/644ea1939dd30fbeaf4caf97)

Thanks Sunita. I built my own image agent with the jdk 17 but I'm getting error "fatal: not in a git directory" when running git commands. Looks like git recognizes root is not the same user that fetch the git files. Did you do something special to you image abhishekf5/maven-abhishek-docker-agent:v1 ? Thanks again

[Sunita](https://hashnode.com/@sunitabachhav2007)

[May 1, 2023](https://hashnode.com/posts/jenkins-pipeline-for-java-based-application-using-maven-sonarqube-argo-cd-and-kubernetes/6433c5160ed6fbd4103f154c/comment/644ea1939dd30fbeaf4caf97#reply-644fb0f090a163c7648225ce)

I used agent created by Abhishek Veeramalla. He explained this agent image is with docker and maven. I haven't tried to create my own agent image. When we run application manually in first step, we first installed maven and docker then created image.

[Dirceu Pavon](https://hashnode.com/@dirceubb)

[May 1, 2023](https://hashnode.com/posts/jenkins-pipeline-for-java-based-application-using-maven-sonarqube-argo-cd-and-kubernetes/6433c5160ed6fbd4103f154c/comment/644ea1939dd30fbeaf4caf97#reply-644fc4ce90a163c764822927)

Thank you :) [Sunita](https://hashnode.com/@sunitabachhav2007)
