Github_server settings and implementation in jenkins job











up vote
0
down vote

favorite












sorry in advance if it's going to be long - I'm new to Jenkins.



I would like to change the way we approach git in our Jenkins (version 2.89.4).
We mainly use multibranch pipeline projects.
I've defined a github_server under "configure system" using a personal token I've generated on github side, and created with this token a webhook to our Jenkins on github side as well (webhook status OK).
When I try to change a current multibranch pipeline project to work with the github_server (using github_source), the build finishes but the folder is empty. Re-editing the configuration is not possible since it gets stuck on loading because of the SCM part. If I choose no scm, still - folder empty.



Please explain how github_server can be used in multibranch pipeline projects.





the job/project configuration:
branch sources: github source (type).
github project url: https://github.com/orgname/reponame.git.
repo provider: github plugin from global settings
manage hooks is checked
repository requested permission: pull
scm factory: no scm
handlers: branch handlers- added all except branch restrictions
property strategy: all branches get the same properties



build configuration:
mode: by Jenkinsfile
script path - Jenkinsfile (exists in the repo)



scan multibranch pipeline triggers- periodically if not otherwise run , interval 5 min



orphaned item strategy- discard all items





That's it. really hope you can assist :) If there's any detail I haven't mentioned, let me know.



Thanks,
Hila










share|improve this question
























  • Did you upgrade your git client version?
    – Joao Vitorino
    Nov 19 at 17:10










  • where? on my machine? how is it related to Jenkins not being able to get to fetch the repo intermittently ?
    – hilaf
    Nov 19 at 17:40










  • help.github.com/articles/https-cloning-errors and github.com/blog/…
    – Joao Vitorino
    Nov 19 at 19:11










  • solved the github error. issue with one of the slaves.. I edited my question because I still want to implement the github_server configuration in our projects. Please take a look.
    – hilaf
    Nov 20 at 18:50















up vote
0
down vote

favorite












sorry in advance if it's going to be long - I'm new to Jenkins.



I would like to change the way we approach git in our Jenkins (version 2.89.4).
We mainly use multibranch pipeline projects.
I've defined a github_server under "configure system" using a personal token I've generated on github side, and created with this token a webhook to our Jenkins on github side as well (webhook status OK).
When I try to change a current multibranch pipeline project to work with the github_server (using github_source), the build finishes but the folder is empty. Re-editing the configuration is not possible since it gets stuck on loading because of the SCM part. If I choose no scm, still - folder empty.



Please explain how github_server can be used in multibranch pipeline projects.





the job/project configuration:
branch sources: github source (type).
github project url: https://github.com/orgname/reponame.git.
repo provider: github plugin from global settings
manage hooks is checked
repository requested permission: pull
scm factory: no scm
handlers: branch handlers- added all except branch restrictions
property strategy: all branches get the same properties



build configuration:
mode: by Jenkinsfile
script path - Jenkinsfile (exists in the repo)



scan multibranch pipeline triggers- periodically if not otherwise run , interval 5 min



orphaned item strategy- discard all items





That's it. really hope you can assist :) If there's any detail I haven't mentioned, let me know.



Thanks,
Hila










share|improve this question
























  • Did you upgrade your git client version?
    – Joao Vitorino
    Nov 19 at 17:10










  • where? on my machine? how is it related to Jenkins not being able to get to fetch the repo intermittently ?
    – hilaf
    Nov 19 at 17:40










  • help.github.com/articles/https-cloning-errors and github.com/blog/…
    – Joao Vitorino
    Nov 19 at 19:11










  • solved the github error. issue with one of the slaves.. I edited my question because I still want to implement the github_server configuration in our projects. Please take a look.
    – hilaf
    Nov 20 at 18:50













up vote
0
down vote

favorite









up vote
0
down vote

favorite











sorry in advance if it's going to be long - I'm new to Jenkins.



I would like to change the way we approach git in our Jenkins (version 2.89.4).
We mainly use multibranch pipeline projects.
I've defined a github_server under "configure system" using a personal token I've generated on github side, and created with this token a webhook to our Jenkins on github side as well (webhook status OK).
When I try to change a current multibranch pipeline project to work with the github_server (using github_source), the build finishes but the folder is empty. Re-editing the configuration is not possible since it gets stuck on loading because of the SCM part. If I choose no scm, still - folder empty.



Please explain how github_server can be used in multibranch pipeline projects.





the job/project configuration:
branch sources: github source (type).
github project url: https://github.com/orgname/reponame.git.
repo provider: github plugin from global settings
manage hooks is checked
repository requested permission: pull
scm factory: no scm
handlers: branch handlers- added all except branch restrictions
property strategy: all branches get the same properties



build configuration:
mode: by Jenkinsfile
script path - Jenkinsfile (exists in the repo)



scan multibranch pipeline triggers- periodically if not otherwise run , interval 5 min



orphaned item strategy- discard all items





That's it. really hope you can assist :) If there's any detail I haven't mentioned, let me know.



Thanks,
Hila










share|improve this question















sorry in advance if it's going to be long - I'm new to Jenkins.



I would like to change the way we approach git in our Jenkins (version 2.89.4).
We mainly use multibranch pipeline projects.
I've defined a github_server under "configure system" using a personal token I've generated on github side, and created with this token a webhook to our Jenkins on github side as well (webhook status OK).
When I try to change a current multibranch pipeline project to work with the github_server (using github_source), the build finishes but the folder is empty. Re-editing the configuration is not possible since it gets stuck on loading because of the SCM part. If I choose no scm, still - folder empty.



Please explain how github_server can be used in multibranch pipeline projects.





the job/project configuration:
branch sources: github source (type).
github project url: https://github.com/orgname/reponame.git.
repo provider: github plugin from global settings
manage hooks is checked
repository requested permission: pull
scm factory: no scm
handlers: branch handlers- added all except branch restrictions
property strategy: all branches get the same properties



build configuration:
mode: by Jenkinsfile
script path - Jenkinsfile (exists in the repo)



scan multibranch pipeline triggers- periodically if not otherwise run , interval 5 min



orphaned item strategy- discard all items





That's it. really hope you can assist :) If there's any detail I haven't mentioned, let me know.



Thanks,
Hila







git jenkins github






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 18:49

























asked Nov 19 at 16:38









hilaf

12




12












  • Did you upgrade your git client version?
    – Joao Vitorino
    Nov 19 at 17:10










  • where? on my machine? how is it related to Jenkins not being able to get to fetch the repo intermittently ?
    – hilaf
    Nov 19 at 17:40










  • help.github.com/articles/https-cloning-errors and github.com/blog/…
    – Joao Vitorino
    Nov 19 at 19:11










  • solved the github error. issue with one of the slaves.. I edited my question because I still want to implement the github_server configuration in our projects. Please take a look.
    – hilaf
    Nov 20 at 18:50


















  • Did you upgrade your git client version?
    – Joao Vitorino
    Nov 19 at 17:10










  • where? on my machine? how is it related to Jenkins not being able to get to fetch the repo intermittently ?
    – hilaf
    Nov 19 at 17:40










  • help.github.com/articles/https-cloning-errors and github.com/blog/…
    – Joao Vitorino
    Nov 19 at 19:11










  • solved the github error. issue with one of the slaves.. I edited my question because I still want to implement the github_server configuration in our projects. Please take a look.
    – hilaf
    Nov 20 at 18:50
















Did you upgrade your git client version?
– Joao Vitorino
Nov 19 at 17:10




Did you upgrade your git client version?
– Joao Vitorino
Nov 19 at 17:10












where? on my machine? how is it related to Jenkins not being able to get to fetch the repo intermittently ?
– hilaf
Nov 19 at 17:40




where? on my machine? how is it related to Jenkins not being able to get to fetch the repo intermittently ?
– hilaf
Nov 19 at 17:40












help.github.com/articles/https-cloning-errors and github.com/blog/…
– Joao Vitorino
Nov 19 at 19:11




help.github.com/articles/https-cloning-errors and github.com/blog/…
– Joao Vitorino
Nov 19 at 19:11












solved the github error. issue with one of the slaves.. I edited my question because I still want to implement the github_server configuration in our projects. Please take a look.
– hilaf
Nov 20 at 18:50




solved the github error. issue with one of the slaves.. I edited my question because I still want to implement the github_server configuration in our projects. Please take a look.
– hilaf
Nov 20 at 18:50

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379072%2fgithub-server-settings-and-implementation-in-jenkins-job%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53379072%2fgithub-server-settings-and-implementation-in-jenkins-job%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tonle Sap (See)

I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

Guatemaltekische Davis-Cup-Mannschaft