Might not be directly related but some idea:

Is the git repository repos inside the known host file for ssh access? It might 
need
ssh-keygen -R “MyDomain.com” -f “~/.ssh/known_hosts”
ssh-keygen -t rsa “MyDomain.com” >> “~/.ssh/known_hosts”

Might help to avoid host confirmation in some case. Also make sure you have the 
proper ssh key available to the user, you can drop whoami and ssh-add list of 
key into your provider. This is issues I could foresee related to SSH git. 
Maybe something else.


[cid:image013.jpg@01D6BCC5.66478270]
une compagnie  [cid:image014.jpg@01D6BCC5.66478270]
RAPPROCHEZ LA DISTANCE
Jérôme Godbout
Développeur Logiciel Sénior /
Senior Software Developer
p: +1 (418) 800-1073 ext.:109
amotus.ca<http://www.amotus-solutions.com/>
statum-iot.com<http://statum-iot.com/>
[cid:image015.png@01D6BCC5.66478270]<https://www.facebook.com/LesSolutionsAmotus/>
 [cid:image016.png@01D6BCC5.66478270] 
<https://www.linkedin.com/company/amotus-solutions/>  
[cid:image017.png@01D6BCC5.66478270] <https://twitter.com/AmotusSolutions>  
[cid:image018.jpg@01D6BCC5.66478270] 
<https://www.youtube.com/channel/UCoYpQgsmj1iJZyDjTQ3x8Ig>
COVID-19 : we are glad to inform you that 
Amotus<https://www.amotus-solutions.com/> are up and running with limited 
impact on our performance. We will keep you informed of any changes as they 
occur.
COVID-19 : nous sommes fiers d’informer nos collaborateurs que 
Amotus<COVID-19%20mesures%20:%20nous%20sommes%20fier%20d’informer%20nos%20collaborateurs%20que%20Dimonoff/Amotus%20opère%20et%20que%20l’impact%20des%20nouvelles%20facçon%20de%20faire%20mise%20en%20place%20tend%20à%20minister%20l’impact%20sur%20notre%20productivité.>
 opèrent adéquatement et que l’impact sur notre productivité est minimisé. Nous 
vous tiendrons au courant de tout changement.

From: jenkinsci-users@googlegroups.com <jenkinsci-users@googlegroups.com> On 
Behalf Of David Villasmil
Sent: November 17, 2020 9:26 AM
To: Jenkins Users <jenkinsci-users@googlegroups.com>
Subject: Job stuck on "git pull --no-edit"

Hello,

I have the following simple script. I just want to connect via ssh to my build 
server, "git pull" and just build the docker and push it to the registry.

(If i don't include the "git pull --no-edit", it works fine)

I just want to do "git pull". But when there are changed being pulled, git 
gives me a "commit message" editor, and won't let me continue until i enter 
something.This blocks me from automatically deploying, so i'm trying with 
"--no-edit" but the deployment gets stuck there for some reason (i i do it 
manually, works properly)

YML_FILES="eks/"
YML_PATH="infra-api-server-deployment.yaml"
DOCKER_PATH="/api-server"
IMAGE_NAME="api-server"
cd $DOCKER_PATH
git pull --no-edit       <---- STUCK HERE
docker build -t $IMAGE_NAME:$NEW_VER .
docker push $IMAGE_NAME:$NEW_VER
cd $YML_FILES
kubectl apply -f $YML_PATH

Help would be greatly appreciated!

David


--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/85285e93-26cf-4a98-bd3a-ee8eaf3368ben%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/85285e93-26cf-4a98-bd3a-ee8eaf3368ben%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/QB1PR01MB384460F4FDABDD4D38B388E0CDE20%40QB1PR01MB3844.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to