Jenkinsfile – calling multiple groovy scripts

We have our shared libraries on gitlab called mainlibrary and it has a lot of groovy files. Example in mainlibrary gitlab repo we have the following files. startup_pipeline.groovy cleanup_pipeline.groovy In one of our Jenkins job we need to include multiple groovy files in the Jenkinsfile. Is this possible? This is how the Jenkinsfile looks like: … Read more

Running Jenkins with apache at /jenkins

I need to have access at the /jenkins path to the Jenkins server. This is what I have now in my apache configuration: ProxyPass /jenkins http://localhost:8080 ProxyPassReverse /jenkins http://localhost:8080 When I go to example.com/jenkins, I get redirected to example.com/login?from=%2F, instead of the expected exmaple.com/jenkins/login?from=%2F. So is it possible with apache to make all the requests … Read more

why did i need to stop java software? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

Jenkins execute shell scp

I have a Jenkins build where I am trying to copy a war file from one vm to another. I want to do this using scp. I’ve tried running this in the shell outside of Jenkins and everything works fine. Trying to automate it is a little tricky. I need to provide a password in … Read more

Using Jenkins to access mysql files on the same instance

I have a Jenkins installation and running mysql server on the same box. One of my jenkins jobs is supposed to tar up the /var/lib/mysql folder but I get the following error tar: /var/lib/mysql/mysql: Cannot open: Permission denied I have added the jenkins user to the mysql group but this has not done anything for … Read more

unable to establish connection b/w dependency track and jenkins

I’m trying establish connection b/w Jenkins and dependency track . Jenkins, i have mentioned track url but i’m getting connection failed error. And I have added api token. please let me know where im missing? [enter image description here][1] please check image [1]: https://i.stack.imgur.com/Sw8zt.png Answer I fixed my issue, actually my bad, I was trying … Read more

proper user and group configuration for eclipse android jenkins

On ubuntu 10.0.4 Did sudo su Then installed eclipse in /root/eclipse (only wget and unzip, no apt-get) Then installed android sdk in /root/android-sdk-linux_x86 (only wget and unzip, no apt-get) Run with gksudo /root/eclipse/eclipse & No issues. Development working fine. Then installed jenkins in /var/lib/jenkins (using apt-get) Issue: Now when I use jenkins “Execute shell” option … Read more

I cannot access to phpmyadmin after installing Jenkins

to install jenkins, as the instructions I followed says, I had to create this virtual host: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName ci.company.com ServerAlias ci ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPreserveHost on ProxyPass / http://localhost:8080/ </VirtualHost> Now I cannot access anymore to http://localhost/phpmyadmin. It says: Status Code: 404 Exception: Stacktrace: (none) … Read more