Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56550

Credentials fail if password has dollar sign ($) in it

XMLWordPrintable

      Using Credentials with the Parameterized Remote Trigger plugin.

      Created Credentials

      Scope Global
      Username build
      Password $SecretP@ssword
      ID Default
      Description Jenkins build Login

      When the job is triggered it fails with the following information:

      FATAL: org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'ecretP' in 'build:$ecretP@ssword'
      org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'ecretP' in 'build:$ecretP@ssword'
      	at org.jenkinsci.plugins.tokenmacro.Parser.processToken(Parser.java:343)
      	at org.jenkinsci.plugins.tokenmacro.Action$KiHW1UeqOdqAwZul.run(Unknown Source)
      	at org.parboiled.matchers.ActionMatcher.match(ActionMatcher.java:96)
      	at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
      	at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
      	at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
      	at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
      	at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
      	at org.parboiled.matchers.FirstOfMatcher.match(FirstOfMatcher.java:41)
      	at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
      	at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
      	at org.parboiled.matchers.FirstOfMatcher.match(FirstOfMatcher.java:41)
      	at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
      	at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
      	at org.parboiled.matchers.ZeroOrMoreMatcher.match(ZeroOrMoreMatcher.java:39)
      	at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
      	at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
      	at org.parboiled.matchers.SequenceMatcher.match(SequenceMatcher.java:46)
      	at org.parboiled.parserunners.BasicParseRunner.match(BasicParseRunner.java:77)
      	at org.parboiled.MatcherContext.runMatcher(MatcherContext.java:351)
      	at org.parboiled.parserunners.BasicParseRunner.run(BasicParseRunner.java:72)
      	at org.parboiled.parserunners.ReportingParseRunner.runBasicMatch(ReportingParseRunner.java:86)
      	at org.parboiled.parserunners.ReportingParseRunner.run(ReportingParseRunner.java:66)
      	at org.parboiled.parserunners.AbstractParseRunner.run(AbstractParseRunner.java:81)
      	at org.parboiled.parserunners.AbstractParseRunner.run(AbstractParseRunner.java:76)
      	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:85)
      	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74)
      	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199)
      	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237)
      	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:207)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.TokenMacroUtils.applyTokenMacroReplacements(TokenMacroUtils.java:18)
      Caused: java.io.IOException
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.TokenMacroUtils.applyTokenMacroReplacements(TokenMacroUtils.java:22)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.Base64Utils.generateAuthorizationHeaderValue(Base64Utils.java:50)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.auth2.CredentialsAuth.setAuthorizationHeader(CredentialsAuth.java:125)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.getAuthorizedConnection(HttpHelper.java:303)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.sendHTTPCall(HttpHelper.java:432)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.tryCall(HttpHelper.java:566)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.utils.HttpHelper.tryGet(HttpHelper.java:586)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.doGet(RemoteBuildConfiguration.java:881)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.getRemoteJobMetadata(RemoteBuildConfiguration.java:1054)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.performTriggerAndGetQueueId(RemoteBuildConfiguration.java:636)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:601)
      	at org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration.perform(RemoteBuildConfiguration.java:565)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      	at hudson.model.Build$BuildExecution.build(Build.java:206)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      	at hudson.model.Run.execute(Run.java:1810)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

            Unassigned Unassigned
            rocha_stratovan John Rocha
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: