Skip to content

Commit

Permalink
Merge pull request #60 from gematik/publishInternalRelease-41
Browse files Browse the repository at this point in the history
Publish Release 4.13.2
  • Loading branch information
serdarde authored Nov 25, 2024
2 parents ee46f3c + 8eb51e2 commit 44caeae
Show file tree
Hide file tree
Showing 17 changed files with 149 additions and 604 deletions.
48 changes: 22 additions & 26 deletions JenkinsfileMacOS
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ pipeline {
sh 'npm -version'
sh 'cat ~/.npmrc || true'

// Actual CI Build, Tests, Demo App
// Actual CI Build, Tests, Demo App
sh label: 'starting ios test run', script: '''#!/bin/bash -l
set -ev

ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=$https_proxy npm ci
'''
}

// copy LICENSE.txt into ./src/assets/license_de.txt to add it to the DMG file
sh 'iconv -f windows-1250 -t utf-8 LICENSE.txt > ./src/assets/license_de.txt'
}
}
stage ('Set BUILD_VERSION') {
stage('Set BUILD_VERSION') {
steps {
script {
def packageJson = readFile(file: 'package.json')

def parsedJson = new groovy.json.JsonSlurper().parseText(packageJson)

env.BUILD_VERSION = parsedJson.version

echo "Build version: ${env.BUILD_VERSION}"
}
}
Expand All @@ -85,13 +85,10 @@ pipeline {
sh "echo LOCAL_KT='kon23/cats' >> .env"
sh "echo REMOTE_KT='kon23/cats2' >> .env"
sh "echo CONNECTOR_PATH='/kon23' >> .env"
try {
lock(resource: 'authenticator-k23') {
sh 'npm run test -- --silent'
} catch (Exception e) {
echo 'Running additional tests for failures...'
sh 'npm run test:fail -- --silent'
} finally {
junit checksName: 'Jest Tests', testResults: 'jenkins-jest-test-report.xml'
stash name: 'test-reports', includes: '*.xml,coverage/lcov.info'
}
}
}
Expand Down Expand Up @@ -182,7 +179,7 @@ pipeline {

sh 'cp sha256Hash.txt releaseCI/'

if ( params.MOCK_BUILD == true ) {
if (params.MOCK_BUILD == true) {
def filePathMock = "releaseCI/gematik-Authenticator-Mock-Version-${env.BUILD_VERSION}.dmg"
def sha256HashMock = sha256 file: filePathMock

Expand All @@ -202,7 +199,6 @@ pipeline {
expression { params.ARCHIVE_ARTIFACTS == true }
buildingTag()
}

}
steps {
script {
Expand All @@ -212,7 +208,7 @@ pipeline {
nexusFileUpload("./releaseCI/latest-mac.yml", "de/gematik/authenticator/snapshot/macOS/latest-mac.yml", "gematik_snapshots_raw")
nexusFileUpload("releaseCI/sha256Hash.txt", "de/gematik/authenticator/${BUILD_VERSION}/windows/sha256Hash.txt", "gematik_releases_raw")

if ( params.MOCK_BUILD == true ) {
if (params.MOCK_BUILD == true) {
nexusFileUpload("./releaseCI/gematik-Authenticator-Mock-Version-${env.BUILD_VERSION}.dmg", "de/gematik/authenticator/snapshot/macOS/gematik-Authenticator-Mock-Version-${env.BUILD_VERSION}.dmg", "gematik_snapshots_raw")
nexusFileUpload("releaseCI/sha256HashMock.txt", "de/gematik/authenticator/${BUILD_VERSION}/windows/sha256HashMock.txt", "gematik_releases_raw")
}
Expand All @@ -221,10 +217,10 @@ pipeline {
}
stage('Nexus Upload: Releases') {
when {
allOf {
expression { params.SIGN_ARTIFACTS }
branch 'release'
}
allOf {
expression { params.SIGN_ARTIFACTS }
branch 'release'
}
}
steps {
script {
Expand All @@ -235,7 +231,7 @@ pipeline {
nexusFileUpload("./releaseCI/latest-mac.yml", "de/gematik/authenticator/snapshot/macOS/latest-mac.yml", "gematik_releases_raw")
nexusFileUpload("releaseCI/sha256Hash.txt", "de/gematik/authenticator/${BUILD_VERSION}/windows/sha256Hash.txt", "gematik_releases_raw")

if ( params.MOCK_BUILD == true ) {
if (params.MOCK_BUILD == true) {
nexusFileUpload("./releaseCI/gematik-Authenticator-Mock-Version-${env.BUILD_VERSION}.dmg", "de/gematik/authenticator/snapshot/macOS/gematik-Authenticator-Mock-Version-${env.BUILD_VERSION}.dmg", "gematik_releases_raw")
nexusFileUpload("releaseCI/sha256HashMock.txt", "de/gematik/authenticator/${BUILD_VERSION}/windows/sha256HashMock.txt", "gematik_releases_raw")
}
Expand All @@ -259,16 +255,16 @@ pipeline {
stage('Archive Build Log') {
when {
allOf {
branch 'release'
expression { params.SIGN_ARTIFACTS }
branch 'release'
expression { params.SIGN_ARTIFACTS }
}
}
steps {
build job: 'Authenticator-Authenticator_Archive_Buildlog-Release',
parameters: [
string(name: 'BUILDNUMBER', value: "${BUILD_NUMBER}"),
string(name: 'COMMIT_MESSAGE', value: "Save Log for Build ${BUILD_NUMBER}")
]
build job: 'Authenticator-Authenticator_Archive_Buildlog-Release',
parameters: [
string(name: 'BUILDNUMBER', value: "${BUILD_NUMBER}"),
string(name: 'COMMIT_MESSAGE', value: "Save Log for Build ${BUILD_NUMBER}")
]
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

# Release Authenticator

## Version 4.13.2

### Fixed

- Certificate repair functionality
- Using own trust store

## Version 4.13.1

### Fixed
Expand Down
12 changes: 6 additions & 6 deletions builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ module.exports = {
win: {
target: ['nsis'],
publisherName: PUBLISHER_NAME,
extraResources: [
{
from: 'dist_electron/WinCertStoreLib.dll',
to: 'WinCertStoreLib.dll',
},
],
// extraResources: [
// {
// from: 'dist_electron/WinCertStoreLib.dll',
// to: 'WinCertStoreLib.dll',
// },
// ],
},
files: ['!*', 'dist_electron/*'],
forceCodeSigning: FORCE_SIGNING,
Expand Down
Loading

0 comments on commit 44caeae

Please sign in to comment.