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] Not able to create password type build parameter #14

Open
ajay-kumar-1 opened this issue Jan 18, 2023 · 0 comments
Open

[Jenkins] Not able to create password type build parameter #14

ajay-kumar-1 opened this issue Jan 18, 2023 · 0 comments

Comments

@ajay-kumar-1
Copy link

ajay-kumar-1 commented Jan 18, 2023

We are working on the project and it was not recommended to type password as a plain text on the jenkins using build parameter due to security reasons.

On the Jenkins UI, we saw password type build parameter to format the password string as (*)

By referring the code, I think we can create only string type build parameters
Ref: https://github.com/collivier/ansible-role-xtesting/blob/master/templates/run.yaml.j2#L122.

Is there any way to create the password type build parameter?

[Workaround I had used]
For the time being, I had updated the job yaml (for the password type parameter) available in the temp folder and reconfigure jobs using jenkins_jobs.ini or we can add a new parameter from jenkins UI.

However, we would like to have an automated way of doing this?

Command: jenkins-jobs --conf jenkins_jobs.ini update <project_name>.yaml

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