Github_server settings and implementation in jenkins job
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
add a comment |
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
Did you upgrade your git client version?
– Joao Vitorino
Nov 19 '18 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 '18 at 17:40
help.github.com/articles/https-cloning-errors and github.com/blog/…
– Joao Vitorino
Nov 19 '18 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 '18 at 18:50
add a comment |
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
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
git jenkins github
edited Nov 20 '18 at 18:49
asked Nov 19 '18 at 16:38
hilaf
63
63
Did you upgrade your git client version?
– Joao Vitorino
Nov 19 '18 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 '18 at 17:40
help.github.com/articles/https-cloning-errors and github.com/blog/…
– Joao Vitorino
Nov 19 '18 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 '18 at 18:50
add a comment |
Did you upgrade your git client version?
– Joao Vitorino
Nov 19 '18 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 '18 at 17:40
help.github.com/articles/https-cloning-errors and github.com/blog/…
– Joao Vitorino
Nov 19 '18 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 '18 at 18:50
Did you upgrade your git client version?
– Joao Vitorino
Nov 19 '18 at 17:10
Did you upgrade your git client version?
– Joao Vitorino
Nov 19 '18 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 '18 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 '18 at 17:40
help.github.com/articles/https-cloning-errors and github.com/blog/…
– Joao Vitorino
Nov 19 '18 at 19:11
help.github.com/articles/https-cloning-errors and github.com/blog/…
– Joao Vitorino
Nov 19 '18 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 '18 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 '18 at 18:50
add a comment |
0
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',
autoActivateHeartbeat: false,
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Did you upgrade your git client version?
– Joao Vitorino
Nov 19 '18 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 '18 at 17:40
help.github.com/articles/https-cloning-errors and github.com/blog/…
– Joao Vitorino
Nov 19 '18 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 '18 at 18:50