[JIRA] (JENKINS-60120) No line break in text file

1 view
Skip to first unread message

ConstantinKwiatkowski@gmail.com (JIRA)

unread,
Nov 11, 2019, 12:03:03 AM11/11/19
to jenkinsc...@googlegroups.com
Constantin Kwiatkowski created an issue
 
Jenkins / Bug JENKINS-60120
No line break in text file
Issue Type: Bug Bug
Assignee: nobody
Components: shell-script-scm-plugin
Created: 2019-11-11 05:02
Environment: Version 5.6.2
Priority: Minor Minor
Reporter: Constantin Kwiatkowski

Hi everyone. 

I just wanna add a new line to a txt file (name: version.property) after build step.

Using shell console in any job on Jenkins UI:  

echo blabla >> version.property

 

my current solution is: 

echo  >> version.property

echo blabla >> version.property

 

If I add a new line with " echo blabla >> version.property" on the batch server, the bash on the server automatically add the new line to the end of the file. If I use the shell plugin on Jenkins, I change the file on Jenkins and send the file via ssh to the batch server, it doesn't work with only one line. 

I guess shell plugin has an issue to format a .property file correctly. 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages