Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

Jenkins SCM Pipeline: "Selected Git installation does not exist" Error with Valid Path

I have created a project, uploaded it to GitHub, and I want to fetch and run it using a pipeline SCM in Jenkins. I have already configured Git installation in Jenkins under "Manage Jenkins" -...
Jaimin Vitthalapara's user avatar
-1 votes
1 answer
44 views

[email protected]: Permission denied (publickey) from Jenkins job agent

I am getting this error "[email protected]: Permission denied (publickey)." while I try to run git fetch in Jenkins pipeline scripts. This Jenkins server uses an SSH agent(a machine that ...
rohit agrawal's user avatar
0 votes
0 answers
55 views

git rev-list working locally but failing in pipeline

I have a stage in my pipeline like below: stage("Pre Flight Checks") { steps { echo 'using the message count externally' script { ...
Venkat Akurathi's user avatar
0 votes
0 answers
97 views

GitPython unable to execute command in existing repository

I am trying to run a script with GitPython, but it seems to only fail when I run from inside the Jenkins automation environment. The error that it gives isn't very helpful (and I haven't been able to ...
snowwolf75's user avatar
0 votes
1 answer
128 views

Fetch additional branches in Jenkins multibranch pipeline

I have a Jenkins multibranch pipeline build where one of the steps needs to compare commits between the branch being built and main and develop. However, when the script runs, it complains that the ...
Aaron Jensen's user avatar
1 vote
1 answer
55 views

Can I get the git hash from repo url?

I am working on creating a Jenkins job which takes a list of github repo url's as its input. I want to get the latest git hash from each of these repo's. But, I'm not sure how todo this without ...
Reid2's user avatar
  • 33
0 votes
1 answer
114 views

Jenkins doesn't recognize a local repository

I use a local Jenkins service on Ubuntu. I have created a local git repository with a Jenkinsfile: git init git add . git commit -m "Initial commit" The path to the local git repository ...
Irbis's user avatar
  • 1,521
0 votes
1 answer
191 views

unable to run a function from imported groovy library getting "No such property: git for class: groovy.lang.Binding"

Team, I am learning groovy and created a simple one but getting this error running pipeline on jenkins. not sure what it really means + echo inside MAIN in stage Formatting inside MAIN in stage ...
AhmFM's user avatar
  • 1,822
0 votes
0 answers
121 views

How to use Jenkins git parameter plugin with environment variables

I configured several Jenkins jobs via declarative pipeline. I synced the job names with my gitlab repositories so I can checkout in Jenkins like: git url: https://gitlab-server/${JOB_BASE_NAME}.git So ...
deafloo's user avatar
0 votes
1 answer
6k views

Jenkins Pipeline Error: fatal: unable to access repo URL rejected: Port number was not a decimal number between 0 and 65535

I'm facing an issue with my Jenkins pipeline when trying to push changes to a remote Git repository. The error I'm getting is: fatal: unable to access 'https://example.org/git/usernamerepo/devops-...
Andres Cabrera's user avatar
0 votes
2 answers
588 views

How to pull/checkout only single file in Jenkins pipeline using GitSCM plugin?

I would like to pull only single file inside particular folder from github repo during jenkins pipeline using GitSCM plugin. Can it done using GitSCM plugin? or only option available for this scenario ...
akshay_yelp's user avatar
0 votes
1 answer
513 views

GIT LFS (git-lfs) errors when building from Jenkins

I can't successfully checkout large code files from GIT when using Jenkins. I have verified on my agent machine that I can pull the entire GIT repository and build. I previously installed GIT-LFS on ...
Dave's user avatar
  • 8,651
0 votes
0 answers
111 views

Obtain GIT_URL and GIT_BRANCH of a jenins multibranch pipeline without git fetch?

I have a jenkins multibranch pipeline, using a Jenkinsfile that performs the checkout locally: pipeline { options { skipDefaultCheckout() // Do not let the build job perform checkout. } ...
John Q Citizen's user avatar
0 votes
0 answers
30 views

Checked repository is removed without consent

After a certain period (> months) some of my Jenkins pipelines (on MacOS) have to completely re-check out repositories which I check out like with the following snippet. It's like the repository ...
vik's user avatar
  • 174
0 votes
1 answer
159 views

jenkins git plugin: git environment variables are ignored in the checkout step

It's seems impossible to pass environment to the git binary when using the jenkins checkout step https://www.jenkins.io/doc/pipeline/steps/params/scmgit/ This is necessary so I add enable tracing with ...
gatinueta's user avatar
  • 447

15 30 50 per page
1
2 3 4 5
45