Skip to content
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

Fix incorrect "failed" status in DB update #34

Merged
merged 3 commits into from
Nov 22, 2022
Merged

Fix incorrect "failed" status in DB update #34

merged 3 commits into from
Nov 22, 2022

Conversation

micaeljtoliveira
Copy link
Contributor

Plus some refactoring of the Jenkins code.

…heck permissions sets the build as unstable before the database update PBS job isfinished, then the 'Update database' step will check if the job time-out and mark the build as failed even if the job ran without any error.
…, also send the failed permissions email to myself and Andrew.
Copy link
Contributor

@aekiss aekiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine to me - just one comment

to: '${FILE, path="blame_list"}',
cc: 'micael.oliveira@anu.edu.au, andrew.kiss@anu.edu.au',
replyTo: 'micael.oliveira@anu.edu.au, andrew.kiss@anu.edu.au',
body: 'Dear user,\n\n While updating the COSIMA Cookbook database, we found that several files that you own have incorrect permissions or they belong to the wrong group, which prevented us from adding them to the database. You can find the full list of files below (Note: It may be that you own only a subset of these files). We would be grateful if you could fix this issue by making sure that the group has read permissions for all files and directories, that the group has execute permissions for all directories, and that all files and directories belong to one of the following groups: ik11, hh5, or cj50.\nNote that this email is generated automatically. If you believe you have received this email by mistake, please contact Micael Oliveira (micael.oliveira@anu.edu.au) or Andrew Kiss (andrew.kiss@anu.edu.au).\n\nThe following files and/or directories have incorrect permissions:\n\n${FILE, path="incorrect_permissions"}',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and jk72?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. This actually needs to go in the other the PR (#32), not this one.

@micaeljtoliveira micaeljtoliveira merged commit ade51d0 into COSIMA:master Nov 22, 2022
@micaeljtoliveira micaeljtoliveira deleted the fix_incorrect_failure branch November 22, 2022 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants