resxtranslator | Resx Resource Translator | Translation library
kandi X-RAY | resxtranslator Summary
kandi X-RAY | resxtranslator Summary
Resx Resource Translator
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of resxtranslator
resxtranslator Key Features
resxtranslator Examples and Code Snippets
Community Discussions
Trending Discussions on resxtranslator
QUESTION
I created/modified a Resource translator Tool in C# that check the Format in all my resource files in a project.
the program returns an integer. 0 means no Format issue has been found. A number > 0 is the count of all format issues found. Less than 0 is an error like Folder not found etc..
I need to integrate this process in our Jenkins build pipeline (I need to stop the build if the return is not 0)
I modified the Jenkins Script and it's working pretty good, the only problem is that I can't catch up the ErrorLevel. I want like to throw an Eco blah-blah if the return is 0 and something else if the return is != 0.
any help how to do that.
This what I did so far, as I said it's working and the build stop if the return value is not 0, but I need to catch that value somehow to know for example the Total count of the Format issues I have etc..
...ANSWER
Answered 2019-Apr-09 at 08:37You could use the returnStatus flag
Normally, a script which exits with a nonzero status code will cause the step to fail with an exception. If this option is checked, the return value of the step will instead be the status code. You may then compare it to zero, for example.
And here's how you could use it
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install resxtranslator
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page