kandi background
kandi background
Explore Kits
kandi background
Explore Kits
Explore all Code Quality open source software, libraries, packages, source code, cloud functions and APIs.

Popular New Releases in Code Quality

2.6.2

v6.1.8

v0.4.2

prettier

2.6.2

standard

eslint

dnSpy

v6.1.8

tools

v0.4.2

Popular Libraries in Code Quality

Trending New libraries in Code Quality

Top Authors in Code Quality

1

48 Libraries

1825

2

40 Libraries

4685

3

39 Libraries

20609

4

29 Libraries

451

5

24 Libraries

11712

6

24 Libraries

32363

7

19 Libraries

226

8

16 Libraries

649

9

16 Libraries

30891

10

15 Libraries

357

1

48 Libraries

1825

2

40 Libraries

4685

3

39 Libraries

20609

4

29 Libraries

451

5

24 Libraries

11712

6

24 Libraries

32363

7

19 Libraries

226

8

16 Libraries

649

9

16 Libraries

30891

10

15 Libraries

357

Trending Kits in Code Quality

Trending Discussions on Code Quality

    Run the command in Linux machine, just the same way batch is used in Windows machine
    Use of Deprecated PMD rules
    How do I specify a specific prettier version in a VSCode .devcontainer?
    Circular Dependency Error when using Enumerations
    Text based JavaScript Ajax quiz
    Exposed ORM: DSL vs DAO in Many-to many relationships best practices
    How do I output only a capture group with sed
    CodeClimate Not reading configuration
    Rust compiler not optimising lzcnt? (and similar functions)
    Gitlab-CI: Nodejs application fails to build

QUESTION

Run the command in Linux machine, just the same way batch is used in Windows machine

Asked 2022-Mar-22 at 09:57

I am new to linux System, there was scenario where through my Jenkinsfile I have to run the command bat 'mvn sonar:sonar -Dsonar.projectKey=testproject -Dsonar.host.url=https://localhostxy.com -Dsonar.login=xyzloginid'on linux machine, but getting an error as I was using batch.

The same batch command is working on window based machine.

Please suggest me an alternate way to run it on Linux based machine.

Jenkinsfile stage as below, its working on Windows, please suggest the changes to make it work on linux based machine.

1stage('SonarQube Code QualityCheck') {
2        steps {           
3            bat 'mvn sonar:sonar -Dsonar.projectKey=testproject -Dsonar.host.url=https://localhostxy.com -Dsonar.login=xyzloginid'            
4            }
5     }
6

Thanks in advance for the help.

ANSWER

Answered 2022-Mar-22 at 09:57

Here is the solution:

copy icondownload icon

1stage('SonarQube Code QualityCheck') {
2        steps {           
3            bat 'mvn sonar:sonar -Dsonar.projectKey=testproject -Dsonar.host.url=https://localhostxy.com -Dsonar.login=xyzloginid'            
4            }
5     }
6stage('SonarQube Code QualityCheck') {
7  steps {           
8    sh 'mvn sonar:sonar -Dsonar.projectKey=testproject -Dsonar.host.url=https://localhostxy.com -Dsonar.login=xyzloginid'            
9  }
10}
11

Source https://stackoverflow.com/questions/71569981

Community Discussions contain sources that include Stack Exchange Network

    Run the command in Linux machine, just the same way batch is used in Windows machine
    Use of Deprecated PMD rules
    How do I specify a specific prettier version in a VSCode .devcontainer?
    Circular Dependency Error when using Enumerations
    Text based JavaScript Ajax quiz
    Exposed ORM: DSL vs DAO in Many-to many relationships best practices
    How do I output only a capture group with sed
    CodeClimate Not reading configuration
    Rust compiler not optimising lzcnt? (and similar functions)
    Gitlab-CI: Nodejs application fails to build

QUESTION

Run the command in Linux machine, just the same way batch is used in Windows machine

Asked 2022-Mar-22 at 09:57

I am new to linux System, there was scenario where through my Jenkinsfile I have to run the command bat 'mvn sonar:sonar -Dsonar.projectKey=testproject -Dsonar.host.url=https://localhostxy.com -Dsonar.login=xyzloginid'on linux machine, but getting an error as I was using batch.

The same batch command is working on window based machine.

Please suggest me an alternate way to run it on Linux based machine.

Jenkinsfile stage as below, its working on Windows, please suggest the changes to make it work on linux based machine.

1stage('SonarQube Code QualityCheck') {
2        steps {           
3            bat 'mvn sonar:sonar -Dsonar.projectKey=testproject -Dsonar.host.url=https://localhostxy.com -Dsonar.login=xyzloginid'            
4            }
5     }
6

Thanks in advance for the help.

ANSWER

Answered 2022-Mar-22 at 09:57

Here is the solution:

copy icon