illya Posted January 26, 2021 Report Share Posted January 26, 2021 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 Link to comment Share on other sites More sharing options...
danipen Posted January 26, 2021 Report Share Posted January 26, 2021 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 Link to comment Share on other sites More sharing options...
illya Posted January 27, 2021 Author Report Share Posted January 27, 2021 Thank you. Link to comment Share on other sites More sharing options...
Mikael Kalms Posted February 7, 2021 Report Share Posted February 7, 2021 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now