Stavo cercando di eseguire Jenkins su un semplice test di Python. È la mia prima volta, quindi ho seguito i passaggi menzionati in questo tutorial: LinkCreazione di Jenkins non riuscita con errore di revisione
Il mio output della console Jenkins dopo che ho attivato la build mostra che non è riuscito perché non è stato possibile trovare alcuna revisione.
Ecco l'output della console:
Started by user anonymous
Building in workspace /usr/share/tomcat7/.jenkins/jobs/PythonUIProject/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url /home/rahul/PycharmProjects/.git/ # timeout=10
Fetching upstream changes from /home/rahul/PycharmProjects/.git/
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress /home/rahul/PycharmProjects/.git/ +refs/heads/*:refs/remotes/origin/*
Seen 0 remote branches
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
Finished: FAILURE
cartella di installazione La mia Git è: home/rahul/PycharmProjects/
, e il mio sistema è un Ubuntu 14.04 LTS
.
Ho provato a cambiare ilsotto il Source Code Management configuration
per essere **
al posto di */master
come soluzione alternativa ma non ha funzionato.
Qualcuno ha mai lavorato su questo? Quale dovrebbe essere la soluzione a questo.
Edit 1: Come da suggerimenti che ho provato ad utilizzare il git push
per spingere il codice, ma sto ottenendo questo:
[email protected]:~/PycharmProjects$ git push -u /home/rahul/PycharmProjects/.git master
error: src refspec master does not match any.
error: failed to push some refs to '/home/rahul/PycharmProjects/.git'
Hai 'git push'? Sembra che manchi dal tutorial che hai collegato. – colinD
È possibile aggiungere le impostazioni di configurazione relative al lavoro git di Jenkins? – yorammi
Vedi la modifica. – demouser123