In our jenkins Configuration, we have two Projects One Project(Multi Branch Free Style) is used to build .Net project and puts the artifacts on S3 bucket. The other project (Multi Branch Free Style) picks the artifacts from S3 bucket and deploys it to our webserver which is on seperate machine. The settings that we have used in project 2: 1) Inject environment variables prior to Building. 2) Settings that we used for S3 bucket: 3) Console Log that gives us error when we click build now: Finally, when we go to individual branch specific child projects for project 2 and instead of using build parameter: ${MB_URL} we hard code path to project directly "MyFolder/MultiBranchProjName1/BranchName" then we see that the build process runs successfully. So, is there a way by which we can make "Copy S3 artifacts" to work with Build parameters or {BRANCH_NAME}? or whether there is a work around for this. Note: Since we are new to Jenkins, we have tried following approaches also:
Any help shall be greatly appreciated. Thanks Devesh |