I am using Jenkins version 2.7.1 in Windows Server 2008.
I am running Jenkins in java environment with java -jar jenkins.war command.
I am trying to send mail with smtp.office365.com -- where I am getting an error "com.sun.mail.smtp.SMTPSendFailedException: xxx.x.x.xx SMTP; Client was not authenticated to send anonymous mail during MAIL FROM"
I read that we need to Enable TLS in jenkins.xml
But I couldn't find where Jenkins.xml file will present ??
If we install the msi file and run Jenkins as a windows service we can get the Jenkins.xml file in C:\Program Files (x86)\Jenkins
But as I am just running my war file - I have no Jenkins folder in Program Files
Could anyone please help me to enable tls for jenkins.war
If you have deployed your Jenkins on Tocat you can set the TLS flag in setenv.bat file in tomcat conf folder.
Related
To install a clean iis web-server, I deleted the web-server/iis on the Windows 2019 server with the following command.
Uninstall-WindowsFeature -Remove Web-Server
Then I deleted the "c:\inetpub" directory, deleted the "%windir%\system32\inetsrv" directory.
Now I want to install iis again I will run my classic asp files. But when I enter Add role, there is only IIS Management Console option under web server.
i would like to run the selenium server from the command prompt with out the internet connection. Every time when i run below command
webdriver-manager start will always needs internet connection to start the server because this commands is checking for new binaries .
But i would like to run the selenium server with the binaries which are already downloaded to my system with out checking for new binaries.
When i search for above question i found a below solution.
webdriver-manager start --versions.standalone version number
Even though i am using above command and try to run the selenium server by specifying the version number still it is depends on internet connection.
Can any one help me how to start the selenium server with out internet . I dont want checking process while starting the server
Actually, webdriver-manager start execute a Java CLI after query latest binary, so you can just execute the Java CLI directly if you have download the binary to avoid access internet to query latest binary.
set Webdriver_Basedir=C:\Tools\npm-global\node_modules\webdriver-manager\selenium
java
-Dwebdriver.chrome.driver=%Webdriver_Basedir%\chromedriver_2.35.exe -Dwebdriver.gecko.driver=%Webdriver_Basedir%\geckodriver-v0.19.1.exe -jar %Webdriver_Basedir%\selenium-server-standalone-3.9.1.jar -port 4444
1.Download Selenium Remote Control from http://seleniumhq.org/download.
2.Extract the ZIP file.
3.Start a Command Prompt or a console window and navigate to where the ZIP file was extracted.
3.Run the command java –jar selenium-server-standalone.jar
Please try this the above
I think this is related to --url parameter but I have tested the ftp path and I can access the ftp from another system.
When the pxe boot loads the kickstart file and starts the installation GUI, "Installation Sources" is grayed out because it can't file the ftp location, it eventually times out, and I can check my ftp path, but it is correct. but installation sources rejects the path, and I can never proceed with the install
When trying to Deploy IIS content files using powershell, I am seeing the following error:
Failing task since return code of [powershell -ExecutionPolicy bypass
-Command /bin/sh file.ps1
We are trying to deliver web content (several web service folders) and a set of associated web.config files to an IIS server using a powershell scrpt. The script and config files are stored in SCM (Stash) and pulled across as part of a checkout task in Bamboo which are then published as artifacts to the bamboo deploy job.
The deploy job is failing.
Does anyone know the correct way to set this up both in the Bamboo Deploy job or on the Windows Server?
Many thanks in advance.
For anyone trying to resolve this issue in future, I resolved this issue by installing a Bamboo agent onto the Windows Server.
This means that the powershell script gets checked out onto the Windows server as part of the deploy job (using the Sourcecode checkout task) and so can then be run as powershell rather than the Bamboo local agent which is running on a Linux box trying to run the powershell script as a linux shell.
The only other issue that had to be overcome was ssl certs needed to be installed into the JKS (cacerts) file on the Windows Server (where the remote agent is running) as we have Bamboo running over https.
I need to run some jar file in another machine in LAN.
java -jar start.jar
How to run a jar file on remote computer?
Thx!
I faced the same issue in my project while accessing resources in a distributed systems environment. If you working on Windows, you need PsExec v2.x.
Create a batch file to execute java -jar start.jar from remote cmd.
Now run the batch file from ur local machine by PSEXEC \\othermachine z:\program.exe. You will need administrator privileges on the target machine.
Visit for documentation.
Lastly, if you demand platform independency and wish to run your jar on remote machine having OS other than the OS on your local machine, then you should go with socket programming.
Via remote client like ssh, teamviewer or custom solution with server-client connection.