Skip to content

Commit

Permalink
Bug fix changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Giwi committed Apr 13, 2018
1 parent 20746e0 commit 564d191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ pipeline {
steps {
this.notifyBuild('STARTED', version)
git credentialsId: 'github', poll: false, url: 'git@github.com:cityzendata/warp10-platform.git'
sh 'git fetch --tags'
echo "Building ${version}"
}
}

stage('Build') {
steps {
sh './gradlew clean crypto:install token:install build -x test'
sh 'node changelog.js > CHANGELOG.md'
}
}

Expand Down
2 changes: 1 addition & 1 deletion changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let md =
`;

let tagList = execSync('git tag -l | sort -V -r | head -n 5').toString().split('\n');
let tagList = execSync('git tag --sort -version:refname | head -n 10').toString().split('\n');
let lastTag = tagList[0];
tagList = tagList.slice(1, -1);
tagList.forEach(tag => {
Expand Down

0 comments on commit 564d191

Please sign in to comment.