Skip to content

Question: How to use this with pipelines? #8

@ThomasStubbe

Description

@ThomasStubbe

How do you use this with pipeline? I can't find any docs nor snippets

pipeline {
    agent {
        label '...'
    }
    parameters {
        gitParameter branchFilter: 'origin/(.*)', name: 'branch', ...
        persistentStringParameter(defaultValue: 'default', description: 'gimme info', name: 'someParam')
    }

It results in:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 7: Invalid parameter type "persistentStringParameter". Valid parameter types: [booleanParam, choice, credentials, file, gitParameter, listGitBranches, text, password, run, string] @ line 7, column 9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions