adoroszlai opened a new pull request #446: HDDS-2859. Hugo error should be 
propagated to build
URL: https://github.com/apache/hadoop-ozone/pull/446
 
 
   ## What changes were proposed in this pull request?
   
   Make failed `hugo` execution cause build failure, similar to compile error.  
The goal is to be able to catch doc syntax errors in CI.
   
   https://issues.apache.org/jira/browse/HDDS-2859
   
   ## How was this patch tested?
   
   Verified that the build is failed with the current error:
   
   ```
   $ mvn -pl :hadoop-hdds-docs clean package
   ...
   [INFO] --- exec-maven-plugin:1.6.0:exec (default) @ hadoop-hdds-docs ---
   Building sites … Total in 22 ms
   Error: Error building site: 
"/Users/attiladoroszlai/src/ozone/hadoop-hdds/docs/content/start/_index.zh.md:39:119":
 unterminated quoted string in shortcode parameter-argument: 'start
   '
   ...
   [ERROR] Command execution failed.
   org.apache.commons.exec.ExecuteException: Process exited with an error: 255 
(Exit value: 255)
   ...
   [INFO] BUILD FAILURE
   ```
   
   and that it is successful if syntax error is fixed:
   
   ```
   ...
   [INFO] --- exec-maven-plugin:1.6.0:exec (default) @ hadoop-hdds-docs ---
   Building sites …
                      | EN | ZH
   +------------------+----+----+
     Pages            | 57 | 19
     Paginator pages  |  0 |  0
     Non-page files   | 10 |  8
     Static files     | 19 | 19
     Processed images |  0 |  0
     Aliases          |  1 |  0
     Sitemaps         |  2 |  1
     Cleaned          |  0 |  0
   
   Total in 95 ms
   ...
   [INFO] BUILD SUCCESS
   ```
   
   CI run with updated Ozone build image with Hugo pre-installed:
   
   https://github.com/adoroszlai/hadoop-ozone/runs/391572329

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to