Skip to content

Commit 317eec5

Browse files
authored
Merge pull request #25 from tknie/main
Various updates for next release
2 parents bbf204c + e383607 commit 317eec5

File tree

97 files changed

+25289
-11440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+25289
-11440
lines changed

.eslintrc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ name: "CodeQL"
1414

1515
on:
1616
push:
17-
branches: [ master ]
17+
branches: [ main ]
1818
pull_request:
1919
# The branches below must be a subset of the branches above
20-
branches: [ master ]
20+
branches: [ main ]
2121
schedule:
2222
- cron: '41 12 * * 4'
2323

.github/workflows/node.js.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111

1212
jobs:
1313
build:

Jenkinsfile

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,54 @@
1+
def version = '7.1.0.0'
2+
def buildVersion = version+'.' + currentBuild.number
3+
4+
properties([parameters([
5+
string(
6+
defaultValue: params.gitRepository ?:'your default value',
7+
name: 'gitRepository',
8+
trim: true
9+
),
10+
string(
11+
defaultValue: params.artifactory ?:'your default value',
12+
name: 'artifactory',
13+
trim: true
14+
),
15+
gitParameter(branch: '', branchFilter: '.*',
16+
defaultValue: '*/main', description: '', name: 'gitbranch',
17+
quickFilterEnabled: false, selectedValue: 'NONE', sortMode: 'NONE',
18+
tagFilter: '*', type: 'PT_BRANCH_TAG')
19+
])
20+
])
21+
122
node('docker-builds') {
223
environment {
324
CI = 'true'
425
}
526
stage('Checkout') {
627
checkout([$class: 'GitSCM', branches: [
7-
[name: '*/master']
28+
[name: gitbranch]
829
], doGenerateSubmoduleConfigurations: false, extensions: [
9-
[$class: 'CleanBeforeCheckout']
30+
[$class: 'CleanBeforeCheckout', deleteUntrackedNestedRepositories: true]
1031
], submoduleCfg: [], userRemoteConfigs: [
11-
[url: 'https://softwareag.com/Adabas/adabas-rest-webapp-mirror.git']
32+
[credentialsId: 'github-sag-tkn', url: gitRepository]
1233
]])
1334
}
14-
docker.image('node:14.5.0-alpine').inside {
15-
withEnv([
35+
docker.image('node:14.15.4-alpine').inside {
36+
withEnv([
1637
'HOME=.',
17-
]){
18-
stage('Install') {
19-
sh 'npm install'
38+
]){
39+
stage('Install') {
40+
sh 'rm -f node_modules dist;npm install'
41+
}
42+
stage('Build') {
43+
sh 'npm run build'
44+
}
45+
}
46+
}
47+
stage('Upload') {
48+
withCredentials([usernamePassword(credentialsId: 'adatestNexus',
49+
passwordVariable: 'NEXUS_PASS', usernameVariable: 'NEXUS_USER')]) {
50+
sh 'cd dist;tar cfvz adabas-rest-webApp.tar.gz *'
51+
sh 'curl -v -u '+env.NEXUS_USER+':'+env.NEXUS_PASS+' -X POST "'+artifactory+'/service/rest/v1/components?repository=maven-sag" -F maven2.groupId=com.softwareag.common -F maven2.artifactId=adabas-rest-webApp -F maven2.version='+version+' -F maven2.asset1=@dist/adabas-rest-webApp.tar.gz -F maven2.asset1.extension=tar.gz'
52+
}
2053
}
21-
stage('Build') {
22-
sh 'npm run build'
23-
}}
24-
}
2554
}

0 commit comments

Comments
 (0)