Every time I boot up my Lubuntu 16.04 laptop I can see I have a running docker container: It serves a Jenkins application on the port 80 and requesting localhost/ in the browser redirects to http://localhost/login?from=%2F and shows a Jenkins warning page: A wget request shows: How can I know which service is firing up this docker process ? I
Tag: jenkins
android sdk build tools 25 on centos 6.8 error
I’m using jenkins for CI and after updating my build tools version to 25 I got this error: I need to use buildtools 25 and my server centos version is 6.8. How can I update glibc ? Answer Apparently, the program you are trying to use was not compiled for Red Hat Enterprise Linux 6 (which only provides glibc 2.12,
dot dot(..) pathing doesnt work on java new file with linux running jenkins
I have this in a maven build on Jenkins. It’s being used to generate files. It works when building on my local machine(windows 7) but doesn’t work when i run it on Linux. It looks like it’s taking the .. as a literal folder path and not going back a directory. The error is: Answer Using basedir.getParent() works.
Jenkins API response tuning
We have built a dashboard on top of Jenkins which enables users to see only jobs relevant to the project and also trigger a build. The UI is built using reactJS and the backend is JAVA REST WebServices. WebService calls the Jenkins api to fetch Job information and converts the data to JSON for feeding the UI. At present we
How to use source command within Jenkins pipeline script
I recently rewrite bash execution command into Jenkins pipeline. The old code is like Now I use pipeline script to wrap the command, like this However, I got an error, as…/.jenkins/script.sh: line 9: source: environment.sh: file not found. When I try to less environment.sh, it display correctly. So I suspect something wrong with source command within sh wrap. Before using
Jenkins slave set-up – both master and slave nodes are Linux machines
I want to set up a Linux node as a slave to the Jenkins master. I was going through the tutorial on setting it up for a Linux machine. Have master launch slave agent via SSH Jenkins has a built-in SSH client implementation that it can use to talk to remote sshd and start a slave agent. This is the
how to delete all files in directory except one folder and one file?
I have application which has one folder called vendor and one file called .env. When ever i automatically publish my source code files to folder, all old files should get deleted except these two. How can i do this in linux by using shell? PS : I am trying to implement rollback mechanism in Jenkins. I will copy artifacts from
Jenkins shell string quotation replacement
I have a Jenkins job with an execute shell box. In the execute shell I use bash instead of dash (sh). In the execute shell I have strings which are supposed to be interpreted as they contain escape sequences (in this case the new line: n), so here is an example execute shell: My problem here is that the script
Is it a good idea to tie Java process to jenkins so that It can be monitored?
I had an independent java process running in linux. I wanted it to be monitored constantly. So I installed jenkins and started the process from jenkins. Jenkins keep showing the process as ongoing through which I know that the process is running. Though it works as per my requirement, I wanted to know if this is a good approach? All
Chromedriver works manually but fails when ran from Jenkins Slave
I have a Jenkins slave node setup with LinuxMint. So we can do some browser testing on a Linux box in Chrome and Firefox. I have the latest Chromedriver installed where the test can run it and when I go into /var/jenkins/workspace/<project name>/TestAutomation/SeleniumFramework manually and do my run npm <test name> the tests launch the chromedriver and run successfully. When