-
18Jul
Jenkins Git environment variables
Jenkins job configuration: Source Code Management Configure “Git Repositories URL” & “Credentials” and “Branches to build” details I Build section Execute Windows batch command with above options
-
18Jul
restart jenkins console
http://[jenkins-server]/[command] where [command] can be exit shutdown jenkins restart restart jenkins reload to reload the configuration
-
01Jul
Jenkins file for SoapUI Projects
node(‘w5’){ deleteDir(); checkout scm; def jenkinsWorkspace = pwd(); def actualCmd =””; def APP_NAME = APP_NAME def EMAIL = EMAIL stage(“SOA QA Validation”){ def Executable_filename = “SOAP_UI_ETOXML_AUTO.xml” command = ‘cmd...
-
17Jun
Temporarily relaxing Content Security Policy in Jenkins:
https://jenkins.io/blog/2016/07/01/html-publisher-plugin/ chrome://flags/#enable-experimental-web-platform-features chrome://settings/content disable “Content Security Policy” on starting Jenkins java -Dhudson.model.DirectoryBrowserSupport.CSP=”” -jar jenkins.war https://content-security-policy.com/ Run IE and other browsers https://turbo.net/browsers Temporarily relaxing Content Security Policy in Jenkins: To...
-
17Jun
Passing jenkins parameters at startup
java -Dhudson.model.DirectoryBrowserSupport.CSP=”sandbox allow-scripts allow-popups allow-popups-to-escape-sandbox; style-src ‘unsafe-inline’ *;” -Dsvnkit.http.sslProtocols=TLSv1 -jar Jenkins.war –httpPort=8280
-
13Jun
Configure windows Virtual Machine as node for your selenium execution
Following steps can be used to configure Virtual machine as node on your Master jenkins node From Master Jenkins Instance: ================================ Add a new node, by specifying following values/settings:...
-
12Jun
Getter dependency for Cucumber scenarios with Picocontainer
Step 1: Create Maven project with following POM.xml =================================================== UTF-8 UTF-8 1.8 1.8 4.2.6 3.141.59 6.5.1 io.cucumber cucumber-picocontainer 4.3.1 test org.testng testng ${testng.version} test io.cucumber cucumber-java ${cucumber.version} test io.cucumber...
-
12Jun
Dependency injection with Guice
Step 1: ======= public interface Discountable { double getDiscount(); } Step 2: Implement above interface =================================== public class EarlyBirdDiscount implements Discountable { @Override public double getDiscount() { return .25;...
-
11Jun
Java code to checkout git code
jars dependency: ================== jsch-0.1.42.jar org-eclipse-jgit.jar slf4j-api-1.7.26.jar slf4j-simple-1.7.26.jar Code snippet: ============== import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.errors.GitAPIException; import org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider; public class abc { private static String...