Skip to content

Commit

Permalink
Update project name to match makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kevangel79 authored Apr 7, 2020
1 parent 44f169e commit 132d294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pipeline {
agent any
options {
checkoutToSubdirectory('b2share-nagios-plugin')
checkoutToSubdirectory('nagios-plugins-eudat-b2share')
}
environment {
PROJECT_DIR="b2share-nagios-plugin"
PROJECT_DIR="nagios-plugins-eudat-b2share"
GIT_COMMIT=sh(script: "cd ${WORKSPACE}/$PROJECT_DIR && git log -1 --format=\"%H\"",returnStdout: true).trim()
GIT_COMMIT_HASH=sh(script: "cd ${WORKSPACE}/$PROJECT_DIR && git log -1 --format=\"%H\" | cut -c1-7",returnStdout: true).trim()
GIT_COMMIT_DATE=sh(script: "date -d \"\$(cd ${WORKSPACE}/$PROJECT_DIR && git show -s --format=%ci ${GIT_COMMIT_HASH})\" \"+%Y%m%d%H%M%S\"",returnStdout: true).trim()
Expand Down Expand Up @@ -67,4 +67,4 @@ pipeline {
}
}
}
}
}

0 comments on commit 132d294

Please sign in to comment.