Not able to install Jenkins plugins using Installer script

Lesson : Demo – Jenkins Plugin Installation
message : parse error: Invalid numeric literal at line 2, column 0

Hi @harshakp06,
Would you please provide the script?

Regards,

To resolve this error, you can follow these steps:

  1. Check the file: Review the file mentioned in the error message, specifically line 2 and column 0, to identify the numeric value causing the issue. It could be a typo or an invalid numeric representation.
  2. Correct the numeric value: Once you have identified the problematic numeric value, ensure that it is formatted correctly. Numeric literals should follow the standard syntax rules, such as not having leading zeros unless necessary, using a decimal point for floating-point numbers, and using proper number notation.
  3. Validate the file: After making corrections, validate the file’s syntax to ensure there are no further errors. You can use a YAML or JSON validator, depending on the file format, to check for any remaining issues.
  4. Retry the operation: Once the file is corrected and validated, retry the Jenkins plugin installation process. The error should no longer occur if the numeric value is resolved.

Hi @Tej-Singh-Rana ,
greetings ,
in the installer.sh script, you have to provide the credential (admin:admin) of your jenkins to correct the problem.

Best regards