Version string is invalid


(Alex) #1

Hello,

I am using Jenkins in combination with Octopus-Deployment and want to push a Package …

I am using this Command Line Argument with MSBuild:
/p:RunOctoPack=true /p:OctoPackPackageVersion=${1.%BUILD_NUMBER%.%SVN_REVISION%} /p:OctoPackProjectName=TestProject/p:Configuration=Release

But I get the following Error:
MSBUILD : OctoPack error OCTONUGET: Version string specified for package reference ‘${1.333.25672}’ is invalid.

Though Octopus does now support SemVer 2.0.0 …

Thanks
Alex


(Shannon Lewis) #3

Hi Alexander,

Thanks for getting in touch. I think the issue is just the ${} around the version value, possibly a mix up from a copied sample or something. If you just remove that I think it will work.

Regards
Shannon


(Alex) #4

Thanks Shannon,

that fixed the Issue!

Regards
Alex