jenkinsci / jenkinsci/credentials-plugin

[JENKINS-55583] Credentials Binding Plugin batch command not working properly

Open
#823 1 comment 0 reactions 0 assignees View on GitHub
component:credentials-binding-plugin component:credentials-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
134
Forks
258
Avg merge
48m
Merged PRs (30d)
1

Description

I got my build process running with this command with plain text: (edited)

dotnet publish "FOLDERNAME\YOURPROJECTNAME.csproj" --configuration Test /p:PublishProfile=LOCATION-DEV /p:AssemblyVersion=1.0.%BUILD_NUMBER%.0 /p:FileVersion=1.0.%BUILD_NUMBER%.0 /p:UserName=DOMAIN/USER /p:Password=XXXXXXXXXXX

But when i change these values of username to this:

dotnet publish "FOLDERNAME\YOURPROJECTNAME.csproj" --configuration Test /p:PublishProfile=LOCATION-DEV /p:AssemblyVersion=1.0.%BUILD_NUMBER%.0 /p:FileVersion=1.0.%BUILD_NUMBER%.0 /p:UserName=%WDS_USERNAME% /p:Password=%WDS_PASSWORD%

I got this ouput:

C:\Program Files (x86)\Jenkins\workspace\PROJECT>dotnet publish "FOLDERNAME\YOURPROJECTNAME.csproj" --configuration Test /p:PublishProfile=OCATION-DEV /p:AssemblyVersion=1.0.373.0 /p:FileVersion=1.0.373.0 /p:UserName=*** /p:*****

Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Core

Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1006: Property is not valid.

*Switch: *****

For switch syntax, type "MSBuild /help"

It like it does his job -> for the output but the real command is not correct.

---
Originally reported by nobels, imported from: Credentials Binding Plugin batch command not working properly


  • status: Open
  • priority: Major
  • component(s): credentials-binding-plugin, credentials-plugin
  • label(s): plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-08

Raw content of original issue

I got my build process running with this command with plain text: (edited)

dotnet publish "FOLDERNAME\YOURPROJECTNAME.csproj" --configuration Test /p:PublishProfile=LOCATION-DEV /p:AssemblyVersion=1.0.%BUILD_NUMBER%.0 /p:FileVersion=1.0.%BUILD_NUMBER%.0 /p:UserName=DOMAIN/USER /p:Password=XXXXXXXXXXX

But when i change these values of username to this:
dotnet publish "FOLDERNAME\YOURPROJECTNAME.csproj" --configuration Test /p:PublishProfile=LOCATION-DEV /p:AssemblyVersion=1.0.%BUILD_NUMBER%.0 /p:FileVersion=1.0.%BUILD_NUMBER%.0 /p:UserName=%WDS_USERNAME% /p:Password=%WDS_PASSWORD%

I got this ouput:

C:\Program Files (x86)\Jenkins\workspace\PROJECT>dotnet publish "FOLDERNAME\YOURPROJECTNAME.csproj" --configuration Test /p:PublishProfile=OCATION-DEV /p:AssemblyVersion=1.0.373.0 /p:FileVersion=1.0.373.0 /p:UserName=*** /p:*****
Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1006: Property is not valid.
*Switch: *****

For switch syntax, type "MSBuild /help"

It like it does his job -> for the output but the real command is not correct.

  • environment: Freestyle project -> add build step -> use bindings

1 attachment

- [sshot-10.jpg](https://issues.jenkins.io/secure/attachment/45715/sshot-10.jpg)
> ![sshot-10.jpg](https://issues.jenkins.io/secure/attachment/45715/sshot-10.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.