Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
janthijs committed Oct 6, 2023
1 parent f02f6c0 commit fc33bd4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
9 changes: 1 addition & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,7 @@ pipeline {
timeout(time: 5, unit: 'MINUTES')
}
steps {
script {
sh "list=\$(git tag -l release-* --sort=-\"version:refname\")"
sh "tag=\${$list:0:16}"
sh "commitid=\$(git rev-list -n 1 \$tag)"
sh "date=\$(git show -s --format=%ci $commitid)"
sh "commits=\$(git log --pretty="%s %cI" --no-merges --since=$date)"
sh "echo $commits"
}
sh "./scripts/release-notifications/notes.sh"
// sh "docker build -f ./Dockerfile.release " +
// "--build-arg WEBHOOK=${WEBHOOK} " +
// "--build-arg TEAMS_HOST=${TEAMS_HOST} " +
Expand Down
15 changes: 15 additions & 0 deletions scripts/release-notifications/notes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

list=$(git tag -l release-* --sort=-"version:refname")

tag=${list:0:16}

commitid=$(git rev-list -n 1 $tag)

date=$(git show -s --format=%ci $commitid)

commits=$(git log --pretty="%s %cI" --no-merges --since="$date")

echo $commits

echo $(node -v)

0 comments on commit fc33bd4

Please sign in to comment.