Beispiel #1
0
 /** Creates a .gitignore file into the working directory */
 private void createGitIgnoreFile() {
   /**
    * create .gitignore file as in
    * https://github.com/cloudspokes/jenkins-test/blob/master/.gitignore if no filenames are give,
    * creates an empty one (if .gitignore file does not already exists). If .gitfile present,
    * appends to the end.
    */
   File gitIgnore = new File(this.workingFolderPath.concat("/.gitignore"));
   FileUtils.writeToFile(gitIgnore, ignoreList, true);
 }