Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Update the common-build-problems.md #2446

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tmkasun
Copy link

@tmkasun tmkasun commented Jul 26, 2019

Include the information about unexpected cache missing due to the usage of exit command in the script.

Include the information about unexpected cache missing due to the usage of exit command in the script.
@native-api
Copy link
Contributor

Copy link
Contributor

@native-api native-api left a comment

Choose a reason for hiding this comment

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

The "common build problem" here is something along the lines of "Build terminates early if I use "exit" in my script".
So the section should be rewritten with that focus and dissociated from Java and Maven (because they are irrelevant here). Other relevant symptoms (cache is not saved) can be mentioned in the text as common symptoms so that this section can be found by relevant keywords by the next guy who hits the same problem.

(There are also lots of typos.)

@Pezi777 Pezi777 requested a review from cotsog July 31, 2019 08:25

## Build terminates early if I use `exit` in my script

Check the `scrip` section in your .travis.yaml configuration file. You might have used `exit` command in the given script
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be `script`.

Additionally, these two sentences are basically pointing out the same idea. Drop one.


Check the `scrip` section in your .travis.yaml configuration file. You might have used `exit` command in the given script

i:e
Copy link
Contributor

Choose a reason for hiding this comment

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

You probably meant "for example".


Aside

The phrase "i.e." (not "i:e") is shorthand for id est, meaning "in other words" to introduce another equivalent idea afterwards, and it does not fit here.

If you do mean "for example", the abbreviation is "e.g.", but it should not start the sentence. Just write out the words.

@@ -610,3 +610,36 @@ jobs:


This creates only one job, _Peanut Butter and Bread_ under the stage named _Breakfast_ as you have defined. It is important to note that in YAML, the `-` symbol is used to create a list of items and the earlier example creates a list of 2 items, while you actually wanted 1. You can read more on [How to define Build Stages](/user/build-stages/#how-to-define-build-stages) and YAML lists syntax in the official [documentation](https://yaml.org/spec/1.2/spec.html#id2759963).

## Build terminates early if I use `exit` in my script
Copy link
Contributor

Choose a reason for hiding this comment

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

This "problem" statement seems to anticipate the answer already. The user would be looking for the statement that matches the symptom they are seeing in the FAQ, so I suggest dropping exit.

Job terminates prematurely


script: mvn clean install -Dmaven.test.skip -q -B -V | grep -v DEBUG; exit "${PIPESTATUS[0]}";

cache:
Copy link
Contributor

Choose a reason for hiding this comment

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

cache directive is not essential to this example, so I suggest dropping it.


```yaml
language: java
dist: trusty
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not necessary. If you insist, please use xenial instead.

@Pezi777 Pezi777 requested review from BanzaiMan and removed request for cotsog December 18, 2019 12:34
Copy link
Contributor

@Pezi777 Pezi777 left a comment

Choose a reason for hiding this comment

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

hey, @tmkasun thank you for having a look at my colleague's suggestions - could you maybe do them in your branch as I would really like to merge your PR :-)

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.

4 participants