Our slave nodes are being used by 2(old & new) master servers, Jenkins job 
is successful when we trigger the build from old server (with jenkins user 
) but failed with new jenkins master (with jenkins1 user)

I have checked java path and the user path both looks good.

The below query is another query
======================
We are trying to upgrade our production jenkins server but afraid of if 
something goes wrong, could you suggest the best way to do this.

Regards,
Jagadeesh


On Wednesday, June 17, 2020 at 12:12:23 PM UTC+5:30, Antonio Gomez wrote:
>
> Hello,
> In global tools configuration check in JDK instalations if java path is 
> correct.
> Check also $PATH from user that run this jobs
>
> El mar., 16 jun. 2020 a las 19:41, Jagadeesh YENNE (<[email protected] 
> <javascript:>>) escribió:
>
>> Hi All,
>>
>>
>> While I am running sonar-scanner job, I am getting below error, could 
>> someone suggest me how to proceed on it.
>>
>>
>> [MFT-Frontend-CI-Dev-UpdatedNode] $ /bin/bash 
>> /tmp/jenkins1683394883835788984.sh
>> Running Sonar
>>
>> > [email protected] sonar 
>> > /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend
>> > sonar-scanner
>>
>> /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner:
>>  line 59: /usr/bin/java/bin/java: Not a directory
>> /mnt/block_device/jenkins1/workspace/MFT-Frontend/MFT-Frontend-CI-Dev-UpdatedNode/mft-frontend/node_modules/sonar-scanner/bin/sonar-scanner:
>>  line 59: exec: /usr/bin/java/bin/java: cannot execute: Not a directory
>> npm ERR! code ELIFECYCLE
>> npm ERR! errno 126
>> npm ERR! [email protected] sonar: `sonar-scanner`
>> npm ERR! Exit status 126
>> npm ERR! 
>> npm ERR! Failed at the [email protected] sonar script.
>> npm ERR! This is probably not a problem with npm. There is likely additional 
>> logging output above.
>>
>> npm ERR! A complete log of this run can be found in:
>> npm ERR!     
>> /mnt/block_device/jenkins1/.npm/_logs/2020-06-05T18_00_28_687Z-debug.log
>> Build step 'Execute shell' marked build as failure
>> Finished: FAILURE
>>
>>
>> Regards,
>> Jagadeesh
>>
>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/f590f5dc-69ab-4267-a163-3a3d87480be0o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/f783521f-25e1-4de5-a9f9-65d94a23197eo%40googlegroups.com.

Reply via email to