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

Issue with Context on Linux #91

Open
agnija-bako opened this issue Mar 9, 2022 · 0 comments
Open

Issue with Context on Linux #91

agnija-bako opened this issue Mar 9, 2022 · 0 comments

Comments

@agnija-bako
Copy link

I am running a StartPowershellFile on Cake

Task("Deploy")    
    .IsDependentOn("Publish")
    .Description("Deploy new function")
    .Does(() =>
{   
    DoInDirectory(publishScriptsPath, () =>
    {
        StartPowershellFile(upsertApim, args =>
        {
            args.Append("param1", param1);
            args.Append("param2", param2);
            args.Append("param3",param3);
        });
    });
});

RunTarget(target);`

This runs on a linux machine that is a self hosted Github runner.
Everytime I run this Cake task I get a NullReferenceException, and it points me to the follow line in the Cake.Powershell code

image

It seems that maybe the ICakeContext is either null or one of its properties is null and is causing the issue?

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

No branches or pull requests

1 participant