Giter Club home page Giter Club logo

Comments (3)

nvuillam avatar nvuillam commented on June 24, 2024 1

NglParseError is for... parse errors , returned by Groovy parser (I apologize for it if the message is not very clear, but i don't have the hand on Groovy parser and it's far too complicated for me to go there 😨 )
When Groovy does not succeed to parse a file, most of issues are not catched
Once the parse errors fixed, the linter can parse the code so provide usual errors :)

from npm-groovy-lint.

nvuillam avatar nvuillam commented on June 24, 2024

Please could you post your jenkinsfiles so I can reproduce ? :)
If they can not be public, you can mail them

from npm-groovy-lint.

mwallace72 avatar mwallace72 commented on June 24, 2024

Reproduced with this content:

pipeline {
  agent {
    kubernetes {
      yamlFile 'yaml-templates/node-skaffold.yml'
    }
  }
  stages {
    stage('Clone & Install') {
      steps {
        checkout([
          $class: 'GitSCM',
          branches: [
            [name: "*/master"]
          ],
          doGenerateSubmoduleConfigurations: false,
          extensions: [[$class: 'LocalBranch']],, // <-- this double comma
          submoduleCfg: [],
          userRemoteConfigs: [
            [credentialsId: 'redacted',
              url: "redacted"
            ]
          ]
        ])
        sh 'npm ci'
      }
    }
    stage('Build Prod') {
      steps {
        sh 'export APP_ENV=production && npm run build'
      }
    }
  }
}

Looks like the double comma was causing the issue, even though it parsed fine to run with (double comma was not needed in fact)

from npm-groovy-lint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.