Using the Branchname only, instead the full path only

2017-12-12 Thread Paul McGregory
Hi Everybody. I am using multibranch pipeline. The deployment works fine, but ein want get the BranchName only, instead the full branchname path. e.g I am using echo "${env.BRANCH_NAME}" and get "feature/1234", but I just want "1234". If found something like echo "${env.BRANCH_NAME}#*f

Re: Job deployed on wrong node

2014-01-09 Thread Paul McGregory
I´m sorry. It was important to set the node-name in the "restrict where job can run" No it works like a charm :) jenkins is now deploying the project on the right nodes Mnnny thanks!!! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Job deployed on wrong node

2014-01-09 Thread Paul McGregory
Tried both options "restrict where job can run" on/off (but without label) This are the first logs > Build on Slave Server3 in workspace /var/www/project-213-3.5.2 > FATAL: Failed to mkdirs: /var/www/project-213-3.5.2 > > It failes, because /var/www does not exist on Server3 and this should be

Re: Job deployed on wrong node

2014-01-09 Thread Paul McGregory
I am using the custom workspace parameter ( /var/www/project-${BUILD_NUMBER}-$tag ) and node-names He is build the job on the wrong node with the workspace parameter from the correct job. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To u

Re: Job deployed on wrong node

2014-01-09 Thread Paul McGregory
Found exactly the same in my jenkins log file: https://issues.jenkins-ci.org/browse/JENKINS-20769 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-

Job deployed on wrong node

2014-01-09 Thread Paul McGregory
Hey, I have 5 differend Slaves for different projects. Sometimes jenkins is deploying a job to a wrong slave, sometimes on the master. The executor is set by 0 on the master, the nodes by a value of 1 I find out, that if i set all slave by "deploy on demand", jenkins is alway just deploying on

jenkins is deleting files

2013-08-29 Thread Paul McGregory
Jenkins is deploying a git repository to my web-servers / nodes directly into the htdocs of the apache This are only static files like css or js, nor images, videos, etc. Those files are not in the git repository. For some reason sometimes jenkins is deleting those files, which are not in the

Run shellscript only if changes in git repository

2013-08-22 Thread Paul McGregory
Hi, is it possible to run a shellscript only, when e.g. some *.css files are changed in git repository and deployed on slaves? The intention is, to clear the ModPagespeed cache, when a css or js file is changed and deployed on the slaves. Best Regard Gregory -- You received this message beca

Slave workspace in a static folder

2013-08-21 Thread Paul McGregory
Hi, is it possible to copy a built on the slaves in a static folder? Jenkins itself generate the slaves name and project label as subfolders. The target of a slaves folder could be e.g. /var/www/public/ thank you Gregory -- You received this message because you are subscribed to the Google Gro