-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-71021] Lint failures do not print proper error message in local builds (regression in 2.359) #9761
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
accf7e6
[JENKINS-71021] Lint failures do not print proper error message in lo…
basil f087124
Test 1
basil 41d89bb
Test 2
basil 4bf1c09
Test 3
basil 4cc55af
Testing is finished
basil c2c0eef
Merge branch 'master' into JENKINS-71021
basil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -421,70 +421,6 @@ THE SOFTWARE. | |||
<changelog.url>https://www.jenkins.io/changelog-stable</changelog.url> | ||||
</properties> | ||||
</profile> | ||||
<profile> | ||||
<id>yarn-ci-lint</id> | ||||
<activation> | ||||
<property> | ||||
<name>env.CI</name> | ||||
</property> | ||||
<file> | ||||
<exists>package.json</exists> | ||||
</file> | ||||
</activation> | ||||
<build> | ||||
<plugins> | ||||
<plugin> | ||||
<groupId>com.github.eirslett</groupId> | ||||
<artifactId>frontend-maven-plugin</artifactId> | ||||
<version>1.15.0</version> | ||||
<executions> | ||||
<execution> | ||||
<id>yarn lint:ci</id> | ||||
<goals> | ||||
<goal>yarn</goal> | ||||
</goals> | ||||
<configuration> | ||||
<arguments>lint:ci</arguments> | ||||
<skip>${yarn.lint.skip}</skip> | ||||
</configuration> | ||||
</execution> | ||||
</executions> | ||||
</plugin> | ||||
</plugins> | ||||
</build> | ||||
</profile> | ||||
<profile> | ||||
<id>yarn-lint</id> | ||||
<activation> | ||||
<property> | ||||
<name>!env.CI</name> | ||||
</property> | ||||
<file> | ||||
<exists>package.json</exists> | ||||
</file> | ||||
</activation> | ||||
<build> | ||||
<plugins> | ||||
<plugin> | ||||
<groupId>com.github.eirslett</groupId> | ||||
<artifactId>frontend-maven-plugin</artifactId> | ||||
<version>1.15.0</version> | ||||
<executions> | ||||
<execution> | ||||
<id>yarn lint</id> | ||||
<goals> | ||||
<goal>yarn</goal> | ||||
</goals> | ||||
<configuration> | ||||
<arguments>lint</arguments> | ||||
<skip>${yarn.lint.skip}</skip> | ||||
</configuration> | ||||
</execution> | ||||
</executions> | ||||
</plugin> | ||||
</plugins> | ||||
</build> | ||||
</profile> | ||||
<profile> | ||||
<id>yarn-execution</id> | ||||
<activation> | ||||
|
@@ -526,7 +462,6 @@ THE SOFTWARE. | |||
<artifactId>frontend-maven-plugin</artifactId> | ||||
<version>1.15.0</version> | ||||
<executions> | ||||
|
||||
<execution> | ||||
<id>install node and yarn</id> | ||||
<goals> | ||||
|
@@ -540,15 +475,13 @@ THE SOFTWARE. | |||
<!-- tried to create a mirror for yarnDownloadRoot but it did not work --> | ||||
</configuration> | ||||
</execution> | ||||
|
||||
<execution> | ||||
<id>yarn install</id> | ||||
<goals> | ||||
<goal>yarn</goal> | ||||
</goals> | ||||
<phase>initialize</phase> | ||||
</execution> | ||||
|
||||
<execution> | ||||
<id>yarn build</id> | ||||
<goals> | ||||
|
@@ -559,12 +492,34 @@ THE SOFTWARE. | |||
<arguments>build</arguments> | ||||
</configuration> | ||||
</execution> | ||||
|
||||
</executions> | ||||
</plugin> | ||||
</plugins> | ||||
</build> | ||||
</profile> | ||||
<profile> | ||||
<id>yarn-ci-lint</id> | ||||
<activation> | ||||
<property> | ||||
<name>env.CI</name> | ||||
</property> | ||||
<file> | ||||
<exists>package.json</exists> | ||||
</file> | ||||
</activation> | ||||
<build> | ||||
<plugins> | ||||
<plugin> | ||||
<groupId>com.github.eirslett</groupId> | ||||
<artifactId>frontend-maven-plugin</artifactId> | ||||
<version>1.15.0</version> | ||||
<executions> | ||||
<execution> | ||||
<id>yarn lint</id> | ||||
<id>yarn lint:ci</id> | ||||
<goals> | ||||
<goal>yarn</goal> | ||||
</goals> | ||||
<phase>test</phase> | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed in order to get CI builds to honor Line 96 in 57d8fa0
|
||||
<configuration> | ||||
<arguments>lint:ci</arguments> | ||||
<skip>${yarn.lint.skip}</skip> | ||||
|
@@ -575,6 +530,39 @@ THE SOFTWARE. | |||
</plugins> | ||||
</build> | ||||
</profile> | ||||
<profile> | ||||
<id>yarn-lint</id> | ||||
<activation> | ||||
<property> | ||||
<name>!env.CI</name> | ||||
</property> | ||||
<file> | ||||
<exists>package.json</exists> | ||||
</file> | ||||
</activation> | ||||
<build> | ||||
<plugins> | ||||
<plugin> | ||||
<groupId>com.github.eirslett</groupId> | ||||
<artifactId>frontend-maven-plugin</artifactId> | ||||
<version>1.15.0</version> | ||||
<executions> | ||||
<execution> | ||||
<id>yarn lint</id> | ||||
<goals> | ||||
<goal>yarn</goal> | ||||
</goals> | ||||
<phase>test</phase> | ||||
<configuration> | ||||
<arguments>lint</arguments> | ||||
<skip>${yarn.lint.skip}</skip> | ||||
</configuration> | ||||
</execution> | ||||
</executions> | ||||
</plugin> | ||||
</plugins> | ||||
</build> | ||||
</profile> | ||||
|
||||
<profile> | ||||
<id>clean-node</id> | ||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclear why there were three linting executions; there is only a need for two (one for CI, and one for local builds). Deleted the unnecessary execution and moved the two necessary executions to the correct place in the file (after the build executions, reflecting the order of operations at runtime).