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 pkg_svc_run behavior in powershell plans #4486

Merged
merged 1 commit into from
Jan 29, 2018
Merged

Conversation

mwrock
Copy link
Contributor

@mwrock mwrock commented Jan 23, 2018

This fixes #4479

I have tested this with the aspnet sample:

$pkg_svc_run="cd '$pkg_svc_var_path';`$env:HAB_CONFIG_PATH='$pkg_svc_config_path';dotnet $pkg_name.dll"

and it works.

Signed-off-by: mwrock matt@mattwrock.com

Signed-off-by: mwrock <matt@mattwrock.com>
@thesentinels
Copy link
Contributor

Thanks for the pull request! Here is what will happen next:

  1. Your PR will be reviewed by the maintainers
  2. If everything looks good, one of them will approve it, and your PR will be merged.

Thank you for contributing!

Copy link
Collaborator

@fnichol fnichol left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -1117,13 +1117,15 @@ function Invoke-DefaultBuildService {
Write-BuildLine "Using run hook $PLAN_CONTEXT/hooks/run"
}
else {
if ($pkg_svc_run -ne "" -and (Test-Path $pkg_svc_run)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, right, then we can add flags, args, etc.

`$cmd = @"
$pkg_svc_run
"`@
Invoke-Expression -Command `$cmd 2>&1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Makes sense to me!

@fnichol
Copy link
Collaborator

fnichol commented Jan 29, 2018

@thesentinels approve

@thesentinels
Copy link
Contributor

🤘 I am testing your branch against master before merging it. We do this to ensure that the master branch is never failing tests.

@thesentinels
Copy link
Contributor

:neckbeard: Travis CI has started testing this PR.

@thesentinels
Copy link
Contributor

💖 Travis CI reports this PR passed.

It always makes me feel nice when humans approve of one anothers work. I'm merging this PR now.

I just want you and the contributor to answer me one question:

gif-keyboard-3280869874741411265

@thesentinels thesentinels merged commit 36f7d46 into master Jan 29, 2018
@thesentinels thesentinels deleted the win_svc_run branch January 29, 2018 18:41
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.

setting pkg_svc_run in powershell plans does not trigger run
3 participants