Merge branch 'master' into feature_wireless
This commit is contained in:
20
.github/workflows/changelog.yml
vendored
Normal file
20
.github/workflows/changelog.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: Changelog Generator
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- run: docker run -v $PWD:/workdir quay.io/git-chglog/git-chglog --next-tag vNext --output CHANGELOG-new.md vNext..
|
||||||
|
- name: GitHub Upload Release Artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: CHANGELOG-new.md
|
||||||
|
path: |
|
||||||
|
./CHANGELOG-new.md
|
||||||
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,3 +1,18 @@
|
|||||||
|
<a name="v1.2.2"></a>
|
||||||
|
## [v1.2.2] - 2021-06-22
|
||||||
|
### Ci
|
||||||
|
- remove Jenkins chron
|
||||||
|
- **changelog:** add automation for changelog generation
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
- update examples text and version
|
||||||
|
|
||||||
|
<a name="v1.2.1"></a>
|
||||||
|
## [v1.2.1] - 2021-05-06
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
**docker:** add missing ca-certs
|
||||||
|
|
||||||
<a name="v1.2.0"></a>
|
<a name="v1.2.0"></a>
|
||||||
## v1.2.0
|
## v1.2.0
|
||||||
|
|
||||||
|
|||||||
189
Jenkinsfile
vendored
189
Jenkinsfile
vendored
@@ -1,61 +1,33 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent {
|
||||||
|
label 'docker-amt'
|
||||||
|
}
|
||||||
options {
|
options {
|
||||||
buildDiscarder(logRotator(numToKeepStr: '5', daysToKeepStr: '30'))
|
buildDiscarder(logRotator(numToKeepStr: '5', daysToKeepStr: '30'))
|
||||||
timestamps()
|
timestamps()
|
||||||
timeout(unit: 'HOURS', time: 2)
|
timeout(unit: 'HOURS', time: 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage ('Parallel') {
|
stage ('Cloning Repository') {
|
||||||
parallel {
|
|
||||||
stage ('Linux') {
|
|
||||||
agent { label 'docker-amt' }
|
|
||||||
stages {
|
|
||||||
stage ('Cloning Repository') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
scmCheckout {
|
|
||||||
clean = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Windows') {
|
|
||||||
agent { label 'openamt-win' }
|
|
||||||
stages {
|
|
||||||
stage ('Cloning Repository') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
scmCheckout {
|
|
||||||
clean = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Static Code Scan - Protex') {
|
|
||||||
agent { label 'docker-amt' }
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
staticCodeScan {
|
scmCheckout {
|
||||||
// generic
|
clean = true
|
||||||
scanners = ['protex']
|
|
||||||
scannerType = ['c','c++']
|
|
||||||
|
|
||||||
protexProjectName = 'OpenAMT - RPC'
|
|
||||||
// internal, do not change
|
|
||||||
protexBuildName = 'rrs-generic-protex-build'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Static Code Scan - Protex') {
|
||||||
|
environment{
|
||||||
|
PROJECT_NAME = 'OpenAMT - RPC'
|
||||||
|
SCANNERS = 'protex'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
rbheStaticCodeScan()
|
||||||
|
}
|
||||||
|
}
|
||||||
stage ('Parallel Builds') {
|
stage ('Parallel Builds') {
|
||||||
parallel {
|
parallel {
|
||||||
stage ('Linux') {
|
stage ('Linux') {
|
||||||
@@ -71,6 +43,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh './scripts/jenkins-pre-build.sh'
|
sh './scripts/jenkins-pre-build.sh'
|
||||||
sh './scripts/jenkins-build.sh'
|
sh './scripts/jenkins-build.sh'
|
||||||
|
stash includes: 'build/rpc', name: 'linux-rpc-app'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Archive') {
|
stage ('Archive') {
|
||||||
@@ -78,7 +51,6 @@ pipeline {
|
|||||||
archiveArtifacts allowEmptyArchive: true, artifacts: 'build/rpc', caseSensitive: false, onlyIfSuccessful: true
|
archiveArtifacts allowEmptyArchive: true, artifacts: 'build/rpc', caseSensitive: false, onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Windows') {
|
stage ('Windows') {
|
||||||
@@ -89,7 +61,7 @@ pipeline {
|
|||||||
bat 'scripts\\jenkins-pre-build.cmd'
|
bat 'scripts\\jenkins-pre-build.cmd'
|
||||||
bat 'scripts\\jenkins-build.cmd'
|
bat 'scripts\\jenkins-build.cmd'
|
||||||
// prepare stash for the binary scan
|
// prepare stash for the binary scan
|
||||||
stash includes: "**/*.exe", name: 'rpc-app'
|
stash includes: '**/*.exe', name: 'win-rpc-app'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Archive') {
|
stage ('Archive') {
|
||||||
@@ -101,71 +73,82 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Parallel Scans') {
|
|
||||||
parallel {
|
|
||||||
stage ('Static Code Scan Linux') {
|
|
||||||
agent { label 'docker-amt' }
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
staticCodeScan {
|
|
||||||
// generic
|
|
||||||
scanners = ['bdba','klocwork']
|
|
||||||
scannerType = 'c++'
|
|
||||||
|
|
||||||
protecodeGroup = '25'
|
stage('Prep Binary') {
|
||||||
protecodeScanName = 'rpc-zip'
|
steps {
|
||||||
protecodeDirectory = './build/rpc'
|
sh 'mkdir -p ./bin'
|
||||||
|
dir('./bin') {
|
||||||
klockworkPreBuildScript = './scripts/jenkins-pre-build.sh'
|
unstash 'linux-rpc-app'
|
||||||
klockworkBuildCommand = './scripts/jenkins-build.sh'
|
unstash 'win-rpc-app'
|
||||||
klockworkProjectName = 'Panther Point Creek'
|
|
||||||
klockworkIgnoreCompileErrors = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stage ('Static Code Scan Windows') {
|
}
|
||||||
stages {
|
}
|
||||||
stage ('Static Code Scan Windows - Klockwork') {
|
stage('Linux Scans') {
|
||||||
agent { label 'openamt-win' }
|
environment{
|
||||||
steps {
|
PROJECT_NAME = 'OpenAMT - RPC - Linux'
|
||||||
script {
|
SCANNERS = 'bdba,klocwork'
|
||||||
staticCodeScan {
|
|
||||||
// generic
|
|
||||||
scanners = ['klocwork']
|
|
||||||
scannerType = 'c++'
|
|
||||||
|
|
||||||
klockworkPreBuildScript = 'scripts\\jenkins-pre-build.cmd'
|
// protecode details
|
||||||
klockworkBuildCommand = 'scripts\\jenkins-build.cmd'
|
PROTECODE_BIN_DIR = './bin'
|
||||||
klockworkProjectName = 'Panther Point Creek'
|
PROTECODE_INCLUDE_SUB_DIRS = true
|
||||||
klockworkIgnoreCompileErrors = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage ('Static Code Scan Windows - BDBA') {
|
|
||||||
agent { label 'docker-amt' }
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh "mkdir -p bdbaScanDir"
|
|
||||||
dir("bdbaScanDir") {
|
|
||||||
unstash 'rpc-app'
|
|
||||||
}
|
|
||||||
staticCodeScan {
|
|
||||||
// generic
|
|
||||||
scanners = ['bdba']
|
|
||||||
scannerType = 'c++'
|
|
||||||
|
|
||||||
protecodeGroup = '25'
|
// klocwork details
|
||||||
protecodeScanName = 'rpc-zip'
|
KLOCWORK_SCAN_TYPE = 'c++'
|
||||||
protecodeDirectory = 'bdbaScanDir'
|
KLOCWORK_PRE_BUILD_SCRIPT = './scripts/jenkins-pre-build.sh'
|
||||||
}
|
KLOCWORK_BUILD_COMMAND = './scripts/jenkins-build.sh'
|
||||||
}
|
KLOCWORK_IGNORE_COMPILE_ERRORS = true
|
||||||
}
|
|
||||||
|
// publishArtifacts details
|
||||||
|
PUBLISH_TO_ARTIFACTORY = true
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
rbheStaticCodeScan()
|
||||||
|
dir('artifacts/Klockwork'){
|
||||||
|
sh 'cp kw_report.html kw_report_linux.html'
|
||||||
|
sh 'cp kw_report.csv kw_report_linux.csv'
|
||||||
|
archiveArtifacts allowEmptyArchive: true, artifacts: 'kw_report_linux.html'
|
||||||
|
archiveArtifacts allowEmptyArchive: true, artifacts: 'kw_report_linux.csv'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Windows Scans'){
|
||||||
|
agent { label 'openamt-win' }
|
||||||
|
stages{
|
||||||
|
stage ('Windows Scans - klocwork') {
|
||||||
|
environment {
|
||||||
|
PROJECT_NAME = 'OpenAMT - RPC - Windows'
|
||||||
|
SCANNERS = 'klocwork'
|
||||||
|
|
||||||
|
// klocwork details
|
||||||
|
KLOCWORK_SCAN_TYPE = 'c++'
|
||||||
|
KLOCWORK_PRE_BUILD_SCRIPT = 'scripts\\jenkins-pre-build.cmd'
|
||||||
|
KLOCWORK_BUILD_COMMAND = 'scripts\\jenkins-build.cmd'
|
||||||
|
KLOCWORK_IGNORE_COMPILE_ERRORS = true
|
||||||
|
|
||||||
|
// publishArtifacts details
|
||||||
|
PUBLISH_TO_ARTIFACTORY = true
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
rbheStaticCodeScan()
|
||||||
|
dir('artifacts\\Klockwork'){
|
||||||
|
bat 'copy kw_report.html kw_report_windows.html'
|
||||||
|
bat 'copy kw_report.csv kw_report_windows.csv'
|
||||||
|
stash includes: 'kw_report_windows.*', name: 'win-kwreports'
|
||||||
|
archiveArtifacts allowEmptyArchive: true, artifacts: 'kw_report_windows.html'
|
||||||
|
archiveArtifacts allowEmptyArchive: true, artifacts: 'kw_report_windows.csv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Publish Artifacts'){
|
||||||
|
steps{
|
||||||
|
dir('artifacts/Klockwork'){
|
||||||
|
unstash 'win-kwreports'
|
||||||
|
}
|
||||||
|
publishArtifacts()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user