[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Oleg Nenashev assigned an issue to Unassigned Jenkins / JENKINS-34264 Mask Passwords does not enable variables in workflow/pipeline Change By: Oleg Nenashev Assignee: Oleg Nenashev Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-34264 Mask Passwords does not enable variables in workflow/pipeline Change By: Oleg Nenashev Priority: Critical Minor Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-34264 Mask Passwords does not enable variables in workflow/pipeline Change By: Oleg Nenashev Issue Type: Bug New Feature Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-34264 Mask Passwords does not enable variables in workflow/pipeline Change By: Oleg Nenashev Priority: Minor Major Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Oleg Nenashev reopened an issue Jenkins / JENKINS-34264 Mask Passwords does not enable variables in workflow/pipeline Change By: Oleg Nenashev Resolution: Not A Defect Status: Resolved Reopened Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Oleg Nenashev commented on JENKINS-34264 Re: Mask Passwords does not enable variables in workflow/pipeline Mask Passwords plugin is in the stale state. I agree with Jesse that it's Global Password functionality is not what recommended for new Jenkins instances. I'll convert this bug to the medium-priority enhancement, but I do not plan to work on it in the short-term. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Jesse Glick commented on JENKINS-34264 Re: Mask Passwords does not enable variables in workflow/pipeline The “global passwords” feature in the Mask Passwords plugin should not be used. This predates the Credentials plugin. Define global credentials instead. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Jeffrey Nelson edited a comment on JENKINS-34264 Re: Mask Passwords does not enable variables in workflow/pipeline Furthermore, in freestyle jobs, the mask passwords plugin also enables global passwords for use. This is the main feature that I see is missing in the workflow/pipeline support.!maskPasswordsFreestyle.png|thumbnail! The 'withCredentials' support helps a little, but how do I access global passwords in a pipeline/workflow job? Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Jeffrey Nelson updated an issue Jenkins / JENKINS-34264 Mask Passwords does not enable variables in workflow/pipeline Furthermore, in freestyle jobs, the mask passwords plugin also enables global passwords for use. This is the main feature that I see is missing in the workflow/pipeline support. Change By: Jeffrey Nelson Attachment: maskPasswordsFreestyle.png Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Elliot Weiser commented on JENKINS-34264 Re: Mask Passwords does not enable variables in workflow/pipeline Then what is the point of the `var` variable? Performing this assignment seems like a no-brainer to me. What I expected was a `withEnv` step called under the covers that assigned the masked string to environment variables. While it is true that we could do this ourselves, it looks dirty, the true usage of it is opaque (see my first question), and it puts the burden on the person writing the pipeline script. While it is true that the credentials binding plugin helps link environment variables to secrets, it requires that there be a stored credential per secret. An example use-case in which this is insufficient is repository-based secrets, whereby a single credential is kept in a domain that is then used for decrypting secrets stored in a git repository and storing them as "masked passwords". As I mentioned before, withCredentials demands a credential per secret. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Jesse Glick resolved as Not A Defect The plugin merely masks passwords, it does not set them. What you are looking for is the Credentials Binding plugin, which has a Pipeline step and both binds passwords (and other secrets) to environment variables, and masks their values where they appear inside the block. Jenkins / JENKINS-34264 Mask Passwords does not enable variables in workflow/pipeline Change By: Jesse Glick Status: Open Resolved Resolution: Not A Defect Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [mask-passwords-plugin] (JENKINS-34264) Mask Passwords does not enable variables in workflow/pipeline
Title: Message Title Jeffrey Nelson created an issue Jenkins / JENKINS-34264 Mask Passwords does not enable variables in workflow/pipeline Issue Type: Bug Assignee: Oleg Nenashev Components: mask-passwords-plugin, workflow-plugin Created: 2016/Apr/14 10:13 PM Priority: Critical Reporter: Jeffrey Nelson The mask-passwords-plugin does not enable global or even locally defined variables within the block when used in a pipeline/workflow job. I have configured a global password variable "MARATHON_PASSWORD". You'll see that I've tried referencing variables in two ways (echo and sh) Example job config: node { stage 'Test Mask Passwords in Pipeline' wrap([$class: 'MaskPasswordsBuildWrapper', varPasswordPairs: [[password: 'thePassword', var: 'MY_PASSWORD']]]) { echo "retrive MY_PASSWORD by var = ${env.MY_PASSWORD}" sh 'echo retrieve MY_PASSWORD by var = $MY_PASSWORD' echo "retrieve MARATHON_PASSWORD by var = ${env.MARATHON_PASSWORD}" sh 'echo retrieve MARATHON_PASSWORD by var = $MARATHON_PASSWORD' echo "masking MY_PASSWORD value works = thePassword" sh 'echo masking MY_PASSWORD value works = thePassword' } } Output from running job: [Pipeline] Allocate node : Start Running