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

[JENKINS-45980] Adds password parameter to Job DSL #1044

Closed
wants to merge 1 commit into from
Closed

[JENKINS-45980] Adds password parameter to Job DSL #1044

wants to merge 1 commit into from

Conversation

TheLonelyGhost
Copy link

See associated feature request.

Exactly as the ticket says, the password parameter is built into Jenkins/Hudson by default so why not have it as a default option in the DSL?

@TheLonelyGhost
Copy link
Author

TheLonelyGhost commented Aug 4, 2017

It seems the linux CI runner is hanging? Seemed to do so when I ran it locally as well, both before and after making the changes.

At the very least, these aren't platform-specific changes so I'd argue the windows runner passing is proof it's stable.

@daspilker
Copy link
Member

See JENKINS-18141.

@daspilker daspilker closed this Aug 27, 2017
@TheLonelyGhost TheLonelyGhost deleted the add-password-param branch August 28, 2017 15:15
@andycoates
Copy link

@daspilker I'm wondering if JENKINS-18141 you linked is relevant anymore. I do not see any password parameter option on latest Jenkins via the Automatic DSL, and mask-password plugin is outdated/unsupported and currently has vulnerabilities. What is the current way of producing the same parameter as a pipeline using password() in parameters closure?

@miteshvermaae
Copy link

miteshvermaae commented Oct 8, 2021

any updates on this?

can we use password param in jenkins dsl. I still can't figure it out. only banging my head for few days now ... :)

@Yashas93
Copy link

Yashas93 commented Aug 17, 2022

any updates on adding the passwordParam(), still i dont see it in the latest DSL.

looking for this https://stackoverflow.com/questions/69479030/need-job-dsl-syntax-for-the-password-parameter

@Maisteru
Copy link

Maisteru commented Aug 26, 2022

I think it might be kind of workaround guys:

password { name('PASSWORD') description('Enter a password for given account.') defaultValueAsSecret(Secret.fromString('SECRET')) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants