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

java.lang.NullPointerException error when trying to use tw pipelines update #461

Open
stevekm opened this issue Oct 3, 2024 · 0 comments

Comments

@stevekm
Copy link

stevekm commented Oct 3, 2024

I can view a pipeline registered in the Seqera Platform

$ tw pipelines view --workspace 123456 --id 67890

  Pipeline at [MyOrg / MyPipelines] workspace:

    --------------+-----------------------------------------
     ID           | 67890
     Name         | nf-canary
     Description  |
     Repository   | https://github.com/seqeralabs/nf-canary
     Compute env. | (not defined)
     Labels       | No labels found

  Configuration:

     {
       "id" : "abcdeg",
       "pipeline" : "https://github.com/seqeralabs/nf-canary",
       "workDir" : "",
       "revision" : "main",
       "resume" : false,
       "pullLatest" : false,
       "stubRun" : false,
       "dateCreated" : "2024-10-01T21:39:18Z"
     }

If I try to update any of the attributes, I get an error;

tw pipelines update --workspace 123456 --id 67890 --description foo

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)

Using the following

tw --version
Tower CLI version 0.10.2 (build f145f1c)

Seqera Platform verison Version 23.4.3_46971e7

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