continuous integration - Jenkins job for remote deployment - multiple environments -
i'm trying create generic jenkins job deploying different projects different git repos , branches different application servers (in combination).
i have 2 string build parameters repo , branch, , little shell script in pre-build step based on build params creates deploy.properties
file properties url
, profile
.
another pre-build step inject environment variables uses deploy.properties
file created.
i'm utilize url property in jenkins deploy plugin in next way: tomcat url field - $url
.
also, in build section, i'm using profile property: clean install -p$profile
.
the problem placeholders or not replaced values i've set in shell script. not post-build action , i'm echoing same placeholders, values replaced , seems work. other check i've done environment variables section given build , variable values there, injection works.
any ideas?
try below , create sure don't have cmd in single quotes or anything.
clean install -p${profile}
jenkins continuous-integration jenkins-plugins continuous-deployment
No comments:
Post a Comment