Search the Community
Showing results for tags 'external tools'.
Hi, We want to implement shortcut to our custom tools using Plastic global configuration system along with its externaltools configuration file. The problem is that our tools are located in a username based path and Plastic doesn't seem to be able to read environment variables pointing to the desired folders. For example, the line in our externaltools.conf looks like this : changeset | Test | "%APPDATA%\Microsoft\Windows\Start Menu\Programs\SomeFolder\test.bat" | and prompt this error window while attempting to access the test.bat. While we can still call the script with regular console command So the question is, is it possible to call a tool using environment variables ? (Moving the tools out of %APPDATA% is not really an option)
Hello, I have tow questions : 1- Is there a way to add on an external tool called from a changeset, the branch it depends on? Or to retrieve it from the command line? I have the following setup on externaltools.conf : branch | Create new build | "<path to the exe>" | "branch=@object&repository=@repository" changeset | Create new build | "<path to the exe>" | "changeset=@object&repository=@repository" This will call a custom tool I wrote in C# to start builds on our Jenkins. The arguments for this tool will be used to pre-fill the plastic related stuff. I already implement an argument less version that retrieve repositories, branches and changesets using the CmdRunner found here : https://www.plasticscm.com/documentation/cmdrunner/plastic-scm-version-control-cmdrunner-guide. So if it's not possible to have the branch on the external tool command line, I still have the possibility to do it from the command line, but I don't know witch command to use. 'find' ? 2- On the jenkins plugins, is there a way to specify a changeset to update the build's workspace to? I have a Jenkins server with the Plastic plugin (version 2.20) and when I trigger a build I use some variables to update the selector with the right values. The current selector looks like this : repository "%REPOSITORY%" path "/" smartbranch "%BRANCH%" Where REPOSITORY and BRANCH are the variable used. But I don't see any information to update to a selected changeset. Is this even possible? I know it can be done in command line, but it will be easier to do it directly with the plugin. Do not hesitate to tell me if you want more information.