Automatic variables aren't set before cloning?

doublebeep7's Avatar

doublebeep7

08 Nov, 2018 12:19 PM

Hi,
Checking https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/20... and https://ci.appveyor.com/project/double-beep/asmfish-i5x4k/builds/20... you will see that:

In first, there is not any errors in syntax, but in the second there is. Command exits with 1 because variable $APPVEYOR_BUILD_NUMBER is not set (as I tried to do it locally with an empty variable). But how there are not errors in first?

  1. Support Staff 1 Posted by Owen McDonnell on 08 Nov, 2018 04:50 PM

    Owen McDonnell's Avatar

    What do you mean by "I tried to do it locally with an empty variable"?

  2. 2 Posted by doublebeep7 on 08 Nov, 2018 05:27 PM

    doublebeep7's Avatar

    Tried var=expr $empty_var % 2 and I got expr: syntax error. $empty_var was null, not set before.

  3. Support Staff 3 Posted by Owen McDonnell on 08 Nov, 2018 05:36 PM

    Owen McDonnell's Avatar

    Yes, that is expected behaviour. Variables set on build machine will be present before use defined variables.

  4. Owen McDonnell closed this discussion on 08 Nov, 2018 05:36 PM.

  5. doublebeep7 re-opened this discussion on 08 Nov, 2018 07:50 PM

  6. 4 Posted by doublebeep7 on 08 Nov, 2018 07:50 PM

    doublebeep7's Avatar

    I do not think this is solved. Take a look at this please.

  7. Support Staff 5 Posted by Owen McDonnell on 09 Nov, 2018 12:11 AM

    Owen McDonnell's Avatar

    This has nothing at all to do with environment variables and everything to do with your initial expression. Try out a=`expr 1 - 1` and see the result.

    Please, as I mentioned in another thread, try to keep discussions here to issues that you have a reasonable belief are AppVeyor issues.

    For shell experimentation, advice and expertise please visit this site

  8. Owen McDonnell closed this discussion on 09 Nov, 2018 12:11 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac