We have disabled the option that caused the problem scenario for now. The issue is caused by the “Download Code” option in the bitbucket plugin that we got.
Happened specifically when a user-specified “ ./ “ as the download path.
The plugin code has the following :
self.logger.warn( " Now downloading code in download folder : %s" % variables['downloadPath'] )
command = CmdLine()
script = '''
cd %s
wget --user %s --password %s -O code.zip %s
unzip code.zip
rm -rf *.zip
foldername=`ls -d */`
mv -f $foldername* `pwd`
rm -rf $foldername
Can this be fixed or updated to avoid consequences in the future?
Thanks
We have disabled the option that caused the problem scenario for now. The issue is caused by the “Download Code” option in the bitbucket plugin that we got.
Happened specifically when a user-specified “ ./ “ as the download path.
The plugin code has the following :
Can this be fixed or updated to avoid consequences in the future?
Thanks