illya 0 Report post Posted January 26 Hello, Is it possible to install Plastic SCM CLI on Windows Server 2019 without required user interaction? It is about the full task: I need compose the Docker image with Jenkins agent that runs on Windows Server, and is able to checkout code from Cloud Plastic SCM server. I started from jenkins/agent:jdk11-windowsservercore-ltsc2019. As I understand, I need cm.exe that is the CLI executable file. But I can't find any info how to add it to Dockerfile. Sincerely, Illya Share this post Link to post Share on other sites
danipen 8 Report post Posted January 26 Yes, The windows installer has some parameters to perform an unattended installation. Try the following: <installerFile>.exe --mode unattended --unattendedmodeui none You can execute <installerFile>.exe --help to view full options. Then you can configure cm.exe in an unattended way using the tool clconfigureclient.exe, located in the client install dir. C:\wks\code\01plastic\bin\client>clconfigureclient.exe --help Invalid parameter: --help USAGE: clconfigureclient [--language=language --workingmode=mode [AuthParameters] --server=server [--port=port]] [--clientconf=clientconfpath] * Available languages: en (English) es (Spanish) * Available users/security working modes: NameWorkingMode (Name) NameIDWorkingMode (Name + ID) LDAPWorkingMode (LDAP) ADWorkingMode (Active Directory) UPWorkingMode (User and password) * Auth parameters (only for LDAPWorkingMode and UPWorkingMode): --user=user --password=password * File path used to create the configuration file (optional) Argument can be a full path, a filename or a directory. Examples: --clientconf=c:/path/to/myclient.conf (Specified path will be used to create the client configuration file) --clientconf=myclient.conf (File myclient.conf inside default config directory will be used) --clientconf=c:/exisitingDirectory (Default filename, client.conf, in specified directory will be used) * Example: clconfigureclient \ --language=en \ --workingmode=LDAPWorkingMode \ --user=jack \ --password=01234 \ --server=plastic.mymachine.com \ --port=8084 \ --clientconf=clientconf_exp.conf (port optional for Cloud servers) Hope it helps. 1 Share this post Link to post Share on other sites
Mikael Kalms 6 Report post Posted February 7 You may find the install scripts in https://github.com/falldamagestudio/JenkinsAutomation/tree/master/Plastic to be useful. We used these about 2-3 years ago when installing Plastic SCM (and configuring it to authenticate against a Cloud organization) on a Jenkins agent that was running on a Windows VM. Parts of it are still good. Other things (like the embedded "this is the version to download" + URL, and the manual wrangling of client.conf/profiles.conf) are messy and there may be better ways of accomplishing it these days. Share this post Link to post Share on other sites