Jenkins- periodical poll and parametrized build
up vote
0
down vote
favorite
I currently have a job in jenkins that polls a git repository every 5 minutes and builds if there were any changes.
I wanted to add a parametrized build option, so that I can manually run a build for a specified commit hash.
My idea is that the job works as it does now (polls for changes and builds) plus allows me to trigger a manual build for a specific commit SHA (inputted by hand).
What's the best way to do this?
git jenkins
|
show 1 more comment
up vote
0
down vote
favorite
I currently have a job in jenkins that polls a git repository every 5 minutes and builds if there were any changes.
I wanted to add a parametrized build option, so that I can manually run a build for a specified commit hash.
My idea is that the job works as it does now (polls for changes and builds) plus allows me to trigger a manual build for a specific commit SHA (inputted by hand).
What's the best way to do this?
git jenkins
Have you tried it already? What is your experience, what errors or problems do occur?
– triplem
2 days ago
I had an idea to simply add a parameter to the job that contains the SHA and do a checkout before building. I'm not sure if it won't interfere with the poll building, that's what my question was actually about.
– eilchner
2 days ago
HEAD? or you could add a new step which determines if a commit id is given and uses a slightly different logic, as if it is not given?
– triplem
2 days ago
My idea was to add an additional Windows Batch step and run a checkout only if the parameter isn't empty and leave the rest of the building proces as it is
– eilchner
2 days ago
why a windows batch? like said, add a new step doing this. you could do this as a batch, but there is no real need for this.
– triplem
2 days ago
|
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I currently have a job in jenkins that polls a git repository every 5 minutes and builds if there were any changes.
I wanted to add a parametrized build option, so that I can manually run a build for a specified commit hash.
My idea is that the job works as it does now (polls for changes and builds) plus allows me to trigger a manual build for a specific commit SHA (inputted by hand).
What's the best way to do this?
git jenkins
I currently have a job in jenkins that polls a git repository every 5 minutes and builds if there were any changes.
I wanted to add a parametrized build option, so that I can manually run a build for a specified commit hash.
My idea is that the job works as it does now (polls for changes and builds) plus allows me to trigger a manual build for a specific commit SHA (inputted by hand).
What's the best way to do this?
git jenkins
git jenkins
asked 2 days ago
eilchner
28116
28116
Have you tried it already? What is your experience, what errors or problems do occur?
– triplem
2 days ago
I had an idea to simply add a parameter to the job that contains the SHA and do a checkout before building. I'm not sure if it won't interfere with the poll building, that's what my question was actually about.
– eilchner
2 days ago
HEAD? or you could add a new step which determines if a commit id is given and uses a slightly different logic, as if it is not given?
– triplem
2 days ago
My idea was to add an additional Windows Batch step and run a checkout only if the parameter isn't empty and leave the rest of the building proces as it is
– eilchner
2 days ago
why a windows batch? like said, add a new step doing this. you could do this as a batch, but there is no real need for this.
– triplem
2 days ago
|
show 1 more comment
Have you tried it already? What is your experience, what errors or problems do occur?
– triplem
2 days ago
I had an idea to simply add a parameter to the job that contains the SHA and do a checkout before building. I'm not sure if it won't interfere with the poll building, that's what my question was actually about.
– eilchner
2 days ago
HEAD? or you could add a new step which determines if a commit id is given and uses a slightly different logic, as if it is not given?
– triplem
2 days ago
My idea was to add an additional Windows Batch step and run a checkout only if the parameter isn't empty and leave the rest of the building proces as it is
– eilchner
2 days ago
why a windows batch? like said, add a new step doing this. you could do this as a batch, but there is no real need for this.
– triplem
2 days ago
Have you tried it already? What is your experience, what errors or problems do occur?
– triplem
2 days ago
Have you tried it already? What is your experience, what errors or problems do occur?
– triplem
2 days ago
I had an idea to simply add a parameter to the job that contains the SHA and do a checkout before building. I'm not sure if it won't interfere with the poll building, that's what my question was actually about.
– eilchner
2 days ago
I had an idea to simply add a parameter to the job that contains the SHA and do a checkout before building. I'm not sure if it won't interfere with the poll building, that's what my question was actually about.
– eilchner
2 days ago
HEAD? or you could add a new step which determines if a commit id is given and uses a slightly different logic, as if it is not given?
– triplem
2 days ago
HEAD? or you could add a new step which determines if a commit id is given and uses a slightly different logic, as if it is not given?
– triplem
2 days ago
My idea was to add an additional Windows Batch step and run a checkout only if the parameter isn't empty and leave the rest of the building proces as it is
– eilchner
2 days ago
My idea was to add an additional Windows Batch step and run a checkout only if the parameter isn't empty and leave the rest of the building proces as it is
– eilchner
2 days ago
why a windows batch? like said, add a new step doing this. you could do this as a batch, but there is no real need for this.
– triplem
2 days ago
why a windows batch? like said, add a new step doing this. you could do this as a batch, but there is no real need for this.
– triplem
2 days ago
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53373608%2fjenkins-periodical-poll-and-parametrized-build%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
Have you tried it already? What is your experience, what errors or problems do occur?
– triplem
2 days ago
I had an idea to simply add a parameter to the job that contains the SHA and do a checkout before building. I'm not sure if it won't interfere with the poll building, that's what my question was actually about.
– eilchner
2 days ago
HEAD? or you could add a new step which determines if a commit id is given and uses a slightly different logic, as if it is not given?
– triplem
2 days ago
My idea was to add an additional Windows Batch step and run a checkout only if the parameter isn't empty and leave the rest of the building proces as it is
– eilchner
2 days ago
why a windows batch? like said, add a new step doing this. you could do this as a batch, but there is no real need for this.
– triplem
2 days ago