Skip to content

Change errorlevel to delayed expansion variable - #438

Merged
nuclearsandwich merged 2 commits into
masterfrom
brawner/delayed_expansion_vars
Apr 23, 2020
Merged

nuclearsandwich merged 2 commits into
masterfrom
brawner/delayed_expansion_vars

Conversation

@brawner

@brawner brawner commented Apr 21, 2020

Copy link
Copy Markdown
Contributor

When the batch script in ci_job.xml.em is read all environment variables that already exist are currently expanded. This had led the ERRORLEVEL variable to be set to 0 and the exit /b commands introduced in #428 to output success instead of failure.

Signed-off-by: Stephen Brawner brawner@gmail.com

@brawner brawner self-assigned this Apr 21, 2020
@cottsay

cottsay commented Apr 21, 2020

Copy link
Copy Markdown
Member

Why are the quotes necessary?

@brawner

brawner commented Apr 21, 2020

Copy link
Copy Markdown
Contributor Author

They aren't. Removed

brawner added 2 commits April 21, 2020 21:32
Signed-off-by: Stephen Brawner <brawner@gmail.com>
Signed-off-by: Stephen Brawner <brawner@gmail.com>
@nuclearsandwich

Copy link
Copy Markdown
Member

I can't find anything which suggests that delayed expansion will help us in this pipeline but I'm willing to try it and I've got to debug https://ci.ros2.org/job/ci_windows/10306/console so I've got failures to test it with.

@nuclearsandwich
nuclearsandwich merged commit 9ce633a into master Apr 23, 2020
@nuclearsandwich
nuclearsandwich deleted the brawner/delayed_expansion_vars branch April 23, 2020 02:52
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.

3 participants