Skip to content
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

Remove Linefeed in library version #160

Merged
merged 2 commits into from
Nov 23, 2019

Conversation

tjaeschke
Copy link
Member

relates to #158

@@ -45,7 +45,7 @@ class OdsContext implements Context {
config.nexusPassword = script.env.NEXUS_PASSWORD
config.openshiftHost = script.env.OPENSHIFT_API_URL
config.bitbucketHost = script.env.BITBUCKET_HOST
config.odsSharedLibVersion = script.sh(script: "env | grep 'library.ods-library.version' | cut -d= -f2", returnStdout: true, label : 'getting ODS shared lib version')
config.odsSharedLibVersion = script.sh(script: "env | grep 'library.ods-library.version' | cut -d= -f2 | tr -d '\\n\\r'", returnStdout: true, label : 'getting ODS shared lib version')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be easier to use .trim() at the end?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this would be easier, even with my brain whispering, "but there are piped shell commands..." :-D

@tjaeschke tjaeschke merged commit e1d7a80 into opendevstack:master Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants