Hi Cuong,

There's no any other files created outside of workspace.
I'm looking for the why the *# of executor* was set as* 2*, but multiple 
jobs running on this node.

I think it should be the issue of Jenkins.

On Friday, May 12, 2017 at 12:18:09 AM UTC+8, Cuong Tran wrote:
>
> Hi,
>
> What I meant is to you should update your build script so it doesn't 
> create files outside of the build workspace or anything that would prevent 
> it to run concurrently. For example, this creates file inside your 
> workspace and can run on multi-executor slave without any issue:
>
> stage {
>    sh 'rm -f hello.txt; date > hello.txt' # hello is inside workspace
>    sh 'npm install foo'
> }
>
> where it would cause problems when you run it concurrently:
>
> stage {
>    sh 'rm -f /Users/devops/hello.txt; date > /Users/devops/hello.txt'
>    sh 'npm install -g foo'
> }
>
>
> On Wednesday, May 10, 2017 at 8:40:31 PM UTC-7, Marslo Jiao wrote:
>>
>> What "avoid using locations outside of the workspace" means?
>>
>> On Thursday, May 11, 2017 at 1:10:59 AM UTC+8, Cuong Tran wrote:
>>>
>>> You should make your build commands work correctly when running inside 
>>> the same node (avoid using locations outside of the workspace).
>>>
>>> On Wednesday, May 10, 2017 at 4:52:06 AM UTC-7, Marslo Jiao wrote:
>>>>
>>>> Is there anyway that I can manage the executor number for the same 
>>>> Jenkins job (using jenkins 2.0 pipeline as code)? All multiple builds in 
>>>> the same job will failed due to resource conflict.
>>>>
>>>>
>>>> Here is my situation:
>>>>
>>>>
>>>>    - In the slave configuration, the *# of executors *was set as *2:*
>>>>
>>>>      
>>>> <https://lh3.googleusercontent.com/-PiwUQGSuEqU/WRL8pFHrvsI/AAAAAAAAAFQ/6tL-IygHg-QPlzku2iWE90ElUyRZxDoHwCLcB/s1600/pipeline-executor-1.png>
>>>>
>>>>    - But lots Jenkins job will be triggered on this node at the same 
>>>>    time:
>>>>
>>>>      
>>>> <https://lh3.googleusercontent.com/-6LpTgQmbDAo/WRL82er_lFI/AAAAAAAAAFU/KO_P_BEWH74uCbMLngi_hsw-22ML8PThQCLcB/s1600/pipeline.png>
>>>>
>>>>
>>>> The Jenkinsfile is:
>>>> node ('ios') {
>>>>     stage ("Preparation") {
>>>>         sh '''
>>>>         ... ...
>>>>         '''
>>>>     }
>>>>     stage ("Preparation") {
>>>>         sh '''
>>>>         ... ...
>>>>         '''
>>>>     }
>>>> ...
>>>> }
>>>>
>>>> Thanks a lot.
>>>>
>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d16072d4-a37b-4a16-a6ee-8501d3c922fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to