tower-cli icon indicating copy to clipboard operation
tower-cli copied to clipboard

tw pipelines update not working for pipelines under shared workspace

Open markpanganiban opened this issue 1 year ago • 0 comments

When trying to update the pre-run script of a pipeline within the shared workspace, we get the null pointer exception error like below:

$ ./tw-0103 pipelines update --workspace 227623619488801 --id 248858957179140 --pre-run prerun.txt
java.lang.NullPointerException
        at io.seqera.tower.cli.commands.pipelines.UpdateCmd.exec(UpdateCmd.java:94)
        at io.seqera.tower.cli.commands.AbstractApiCmd.call(AbstractApiCmd.java:436)
        at io.seqera.tower.cli.commands.AbstractApiCmd.call(AbstractApiCmd.java:67)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at io.seqera.tower.cli.Tower.main(Tower.java:101)
        at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)

This issue doesn't happen on a pipeline within the private workspace.

This might be due to the shared pipeline not having a compute environment selected.

markpanganiban avatar Oct 30 '24 18:10 markpanganiban