jeudi 19 juin 2014

Set Bamboo variable in batch file


Vote count:

0




I'm trying to set a bamboo global variable in a script contained in a batch file. Here is the batch file:



@echo off
echo Initial Date: %bamboo_releaseDate%

for /f "tokens=1-4 delims=/ " %%i in ("%date%") do (
set dow=%%i
set month=%%j
set day=%%k
set year=%%l
)
set mydate=%month%_%day%_%year%
echo %mydate%

set bamboo_releaseDate = %mydate%
echo Set up date: %bamboo_releaseDate%


And here is my output:



Initial Date: 140617
06_19_2014
Set up date: 140617


As you can see, the variable %bamboo_releaseDate% didn't change at all. Any idea if it's possible, and how can I do it ?


My end goal is to use this variable in the naming of the folders containing my nightly builds (using the standard 'Artifact download' provided by Bamboo).


Thanks for your help ! Christophe



asked 18 secs ago






Aucun commentaire:

Enregistrer un commentaire