Skip to content

Commit da027d6

Browse files
committed
ci: jenkins file add
1 parent 7cc08d5 commit da027d6

File tree

6 files changed

+73
-44
lines changed

6 files changed

+73
-44
lines changed

.pipeline/config.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
### General project setup
2+
general:
3+
buildTool: 'npm'
4+
gitSshKeyCredentialsId: 'BYMURAT_GITHUB_TOKEN'
5+
6+
### Step-specific configuration
7+
steps:
8+
9+
### Stage-specific configuration
10+
stages:
11+
12+
# integrationTests:
13+
# credentials:
14+
# - alias: 'mySystemAlias'
15+
# credentialId: 'mySystemCredentialsId'
16+
17+
# productionDeployment:
18+
# cfTargets:
19+
# - org: 'myOrg'
20+
# space: 'mySpace'
21+
# apiEndpoint: 'https://'
22+
# appName: 'myAppName'
23+
# manifest: 'manifest.yml'
24+
# credentialsId: 'myDeploymentCredentialsId'

Jenkinsfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@Library('piper-lib-os') _
2+
3+
piperPipeline script: this

package-lock.json

+34-33
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"license": "Beerware",
1616
"dependencies": {
1717
"@sap/audit-logging": "^3.2.0",
18-
"@sap/cds": "^4.3.0",
19-
"@sap/cds-odata-v2-adapter-proxy": "^1.4.55",
18+
"@sap/cds": "^4.4.4",
19+
"@sap/cds-odata-v2-adapter-proxy": "^1.4.59",
2020
"@sap/xsenv": "^3.1.0",
2121
"@sap/xssec": "^3",
2222
"express": "^4",

srv/service.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ function connectToLog (err, auditlogging){
1414
}
1515

1616
async function auditLogCreate (req) {
17-
18-
console.log(req._.req)
17+
console.log(req.data)
18+
console.log(req.params)
19+
console.log(req.query)
20+
console.log(req.path)
21+
console.log(req.user)
1922

2023
const message =
2124
auditlog.update({ type: 'accessed-object-type', id: { key: 'value' } })
@@ -26,11 +29,8 @@ const message =
2629
.tenant('tenantId')
2730
.by('John Doe');
2831

29-
message.logPrepare(function (err) {
30-
console.log(err)
31-
message.logSuccess(function (err) {
32-
console.log(err)
33-
});
32+
// message.logPrepare(function (err) {
33+
3434

35-
});
35+
// });
3636
}

test/request.http

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ PATCH {{server}}/german-class/Students(33081da9-55a3-412a-a178-9ff0aaca1fd1)
2121
Content-Type: application/json;IEEE754Compatible=true
2222

2323
{
24-
"email" : "mailchange@mail.com"
24+
"email" : "mailchange@mail.com",
25+
"birthdate" : "1990-03-25"
2526
}
2627

0 commit comments

Comments
 (0)