jenkinsci / jenkinsci/credentials-plugin
[JENKINS-55583] Credentials Binding Plugin batch command not working properly
- 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
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)
> 
Contributor guide
Assessment
This issue has not been assessed yet.