-
Notifications
You must be signed in to change notification settings - Fork 96
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
Migrating builds to screwdriver from travis #1110
Conversation
Fixed by eliminating side effects.
DefaultSystemMetricProtocols.DEFAULT_PROTOCOL_DICTIONARY.putAll(BACKUP_DICTIONARY) | ||
DefaultSystemMetricProtocols.STANDARD_PROTOCOLS.clear() | ||
DefaultSystemMetricProtocols.STANDARD_PROTOCOLS.addAll(BACKUP_STANDARD_PROTOCOLS) | ||
System.out.println("foo!") |
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.
Debugging artifacts?
screwdriver.yaml
Outdated
- build: ./screwdriver/mvn-build.bash | ||
|
||
master-commit: | ||
requires: [~commit:master] |
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.
Generally, I would leave this as ~commit
rather than ~commit:master
. Screwdriver is already configured to point at a specific branch, so it seems reduntant to limit this to only the master branch. That means that you can't easily set up another screwdriver job to build another branch.
for a in ${PUBLISH_WHITELIST}; do | ||
if [[ ${GIT_BRANCH} = "origin/${a}" ]]; | ||
then | ||
WHITELISTED="true"; |
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.
given that you are in a for loop, you might was well break
here when the condition is true.
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.