-
Notifications
You must be signed in to change notification settings - Fork 38.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up update-jenkins-jobs on PR Jenkins. #22473
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- job: | ||
name: kubernetes-update-jenkins-jobs | ||
description: 'Update Jenkins jobs based on configs in https://github.com/kubernetes/kubernetes/tree/master/hack/jenkins/job-configs. Test owner: spxtr.' | ||
triggers: | ||
- timed: 'H/15 * * * *' | ||
builders: | ||
- shell: | | ||
curl -fsS https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/update-jobs.sh > update-jobs.sh | ||
chmod +x update-jobs.sh | ||
./update-jobs.sh "hack/jenkins/job-configs:hack/jenkins/job-configs/kubernetes-jenkins-pull" | ||
publishers: | ||
- email-ext: | ||
recipients: spxtr@google.com | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,10 @@ | |
triggers: | ||
- timed: 'H/15 * * * *' | ||
builders: | ||
- shell: 'curl -fsS https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/update-jobs.sh | /bin/bash -' | ||
- shell: | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. won't it fail to update itself, since it now requires the config dir to be set? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are correct about that. The annoying thing is that Jenkins doesn't let me view that job or change its config once it has broken. I'll just POST the new config manually, I suppose. |
||
curl -fsS https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/update-jobs.sh > update-jobs.sh | ||
chmod +x update-jobs.sh | ||
./update-jobs.sh "hack/jenkins/job-configs:hack/jenkins/job-configs/kubernetes-jenkins" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how does this work? previously it was just a directory. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. JJB lets you join directories as in your There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, OK. at first this reminded me of a docker mount, which is why I was confused. not sure if there's a way to make that more obvious. |
||
publishers: | ||
- email-ext: | ||
recipients: spxtr@google.com | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,14 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Update all Jenkins jobs in a folder. If no folder is provided in $1, | ||
# defaults to hack/jenkins/job-configs. | ||
# Update all Jenkins jobs in a folder specified in $1. It can be the union of | ||
# multiple folders separated with a colon, like with the PATH variable. | ||
|
||
if [[ $# -eq 1 ]]; then | ||
config_dir=$1 | ||
else | ||
config_dir="hack/jenkins/job-configs" | ||
echo "Usage: $0 <dir>" >&2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need to update comment on L17-18 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
exit 1 | ||
fi | ||
|
||
# Run the container if it isn't present. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have email-ext installed/set up on PR Jenkins?