question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Helix JobSender SDK doesn't provide a way to set IsExternal=true

See original GitHub issue

E.g. using this Hello World sample:

var api = ApiFactory.GetAuthenticated("<API Token>");

var jobDefinition = api.Job.Define()
        .WithSource("pr/test/helloworld")
        .WithType("test/helloworld")
        .WithBuild(DateTime.UtcNow.Ticks.ToString())
        .WithTargetQueue("Ubuntu.1804.Amd64.Open")
        .DefineWorkItem("Hello World")
        .WithCommand("echo 'Hello!'")
        .WithEmptyPayload()
        .AttachToJob();

var job = await jobDefinition.SendAsync();

The resulting build isn’t accessible to users outside of the Microsoft GitHub org on Mission Control, @MattGal says this is because the Helix job has IsExternal=false but there seems to be no way to set this to true with the SDK.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
akoeplingercommented, Nov 28, 2018

I found a workaround that seems to work for my use case:

var authenticatedApi = ApiFactory.GetAuthenticated("<API TOKEN>");
var storage = new Storage((HelixApi)authenticatedApi);

var anonymousApi = ApiFactory.GetAnonymous();
typeof(HelixApi).GetProperty("Storage").SetValue(anonymousApi, storage, null);

var jobDefinition = anonymousApi.Job.Define()
...
0reactions
akoeplingercommented, Jan 15, 2019

Ok thanks, I was able to send jobs with the new package but hit another issue: https://github.com/dotnet/arcade/issues/1807

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I change a table from internal to external in hive?
ALTER TABLE <table> SET TBLPROPERTIES('EXTERNAL'='TRUE'). Note: EXTERNAL and TRUE need to caps or it will not work.
Read more >
Hive Table is MANAGED or EXTERNAL - issue post ...
The table type is being shown as MANAGED_TABLE since the parameter EXTERNAL is set to True , instead of TRUE . To fix...
Read more >
Untitled
Apakah cowok melankolis bisa move on dari cinta pertama, This does not spark joy? ... you bring a puppy home, How long is...
Read more >
Untitled
Photo editor3, Raukawa road palmerston north, Tapety na topie, ... Perfektes tages make up anleitung, 05 chevy aveo blower motor, A gde si...
Read more >
Untitled
#Amazon 40000 aud dollars in rupees, How to make cat treats, ... Choral work 7 letters, Create new instagram with same email, What...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found