my solution
pipeline {
agent any
tools {
nodejs ‘nodejs-22-6-0’
}
environment {
MONGO_URI = ‘mongodb+srv://supercluster.d83jj.mongodb.net/superData’
MONGO_USERNAME = credentials(‘mongo-db-username’)
MONGO_PASSWORD = credentials(‘mongo-db-password’)
}
stages {
stage(‘Install Dependencies’) {
steps {
sh ‘npm install --no-audit’
}
}
stage('NPM Dependency Audit') {
steps {
sh 'npm audit --audit-level=critical || true'
}
}
stage('Unit Testing') {
steps {
sh 'npm test'
}
}
stage('Code Coverage') {
steps {
catchError(buildResult: 'SUCCESS', message: 'Oops! it will be fixed in futher releases', stageResult: 'UNSTABLE') {
sh 'npm run coverage'
}
}
}
stage('Build Docker Image') {
steps {
script {
// Build Docker image with Git commit hash as the tag
sh 'docker build -t kodekloud-hub:5000/solar-system:${GIT_COMMIT} .'
}
}
}
stage('Trivy Scan') {
steps {
script {
// **Trivy** scan for **high** and **critical vulnerabilities**
sh '''
trivy image kodekloud-hub:5000/solar-system:${GIT_COMMIT} \
--severity CRITICAL \
--exit-code 0 \
--format json -o trivy-image-CRITICAL-results.json
'''
}
}
}
stage('Publish Image - DockerHub') {
steps {
script {
withDockerRegistry([ credentialsId: 'docker-hub-credentials', url: 'http://kodekloud-hub:5000' ]) {
sh 'docker push kodekloud-hub:5000/solar-system:$GIT_COMMIT'
}
}
}
}
stage('Localstack - AWS S3') {
steps {
withAWS(credentials: 'localstack-aws-credentials', endpointUrl: 'http://localhost:4566', region: 'us-east-1') {
sh '''
ls -ltr
mkdir reports-$BUILD_ID
cp -rf coverage/ reports-$BUILD_ID/
cp test-results.xml trivy*.* reports-$BUILD_ID/
ls -ltr reports-$BUILD_ID/
'''
s3Upload(
file: "reports-$BUILD_ID",
bucket:'solar-system-jenkins-reports-bucket',
path:"jenkins-$BUILD_ID/",
pathStyleAccessEnabled: true
)
}
}
}
stage('Deploy to VM') {
steps {
script {
sshagent(credentials: ['vm-dev-deploy-instance']) {
sh '''
ssh -o StrictHostKeyChecking=no root@node01 "
if sudo docker ps -a | grep -q 'solar-system'; then
echo 'Container found. Stopping...'
sudo docker stop 'solar-system' && sudo docker rm 'solar-system'
echo 'Container stopped and removed.'
fi
sudo docker run --name solar-system \
-e MONGO_URI=$MONGO_URI \
-e MONGO_USERNAME=$MONGO_USERNAME \
-e MONGO_PASSWORD=$MONGO_PASSWORD \
-p 3000:3000 -d kodekloud-hub:5000/solar-system:$GIT_COMMIT
"
'''
}
}
}
}
}
post {
always {
junit allowEmptyResults: true, stdioRetention: '', testResults: 'test-results.xml'
publishHTML([allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'coverage/lcov-report', reportFiles: 'index.html', reportName: 'Code Coverage HTML Report', reportTitles: '', useWrapperFileDirectly: true])
}
}
}
error message
Push event to branch feature/enabling-cicd
Looking up repository dasher-org/solar-system
Querying the current revision of branch feature/enabling-cicd…
Current revision of branch feature/enabling-cicd is 9ef69011df4982dfc4ebcd95ea40eddfb3f50602
Obtained Jenkinsfile from 9ef69011df4982dfc4ebcd95ea40eddfb3f50602
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/lar-system_feature_enabling-cicd
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitea-server-creds
git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/lar-system_feature_enabling-cicd/.git # timeout=10
Fetching changes from the remote Git repository
git config remote.origin.url http://git-server:5555/dasher-org/solar-system.git # timeout=10
Fetching without tags
Fetching upstream changes from http://git-server:5555/dasher-org/solar-system.git
git --version # timeout=10
git --version # ‘git version 2.34.1’
using GIT_ASKPASS to set credentials
git fetch --no-tags --force --progress – http://git-server:5555/dasher-org/solar-system.git +refs/heads/feature/enabling-cicd:refs/remotes/origin/feature/enabling-cicd # timeout=10
Checking out Revision 9ef69011df4982dfc4ebcd95ea40eddfb3f50602 (feature/enabling-cicd)
git config core.sparsecheckout # timeout=10
git checkout -f 9ef69011df4982dfc4ebcd95ea40eddfb3f50602 # timeout=10
Commit message: “modified”
git rev-list --no-walk 9a72a3a6b7334e115775f2ccf1cff3c22f9bb71c # timeout=10
[Gitea] Notifying branch build status: PENDING Build started…
[Gitea] Notified
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withCredentials
Masking supported pattern matches of $MONGO_USERNAME or $MONGO_PASSWORD
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Install Dependencies)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
- npm install --no-audit
changed 105 packages in 3s
50 packages are looking for funding
run npm fund
for details
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (NPM Dependency Audit)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
- npm audit --audit-level=critical
npm audit report
@babel/helpers <7.26.10
Severity: moderate
Babel has inefficient RegExp complexity in generated code with .replace when transpiling named capturing groups - Babel has inefficient RegExp complexity in generated code with .replace when transpiling named capturing groups · CVE-2025-27789 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/@babel/helpers
body-parser <1.20.3
Severity: high
body-parser vulnerable to denial of service when url encoding is enabled - body-parser vulnerable to denial of service when url encoding is enabled · CVE-2024-45590 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/body-parser
express <=4.21.0 || 5.0.0-alpha.1 - 5.0.0
Depends on vulnerable versions of body-parser
Depends on vulnerable versions of cookie
Depends on vulnerable versions of path-to-regexp
Depends on vulnerable versions of send
Depends on vulnerable versions of serve-static
node_modules/express
brace-expansion 1.0.0 - 1.1.11 || 2.0.0 - 2.0.1
brace-expansion Regular Expression Denial of Service vulnerability - brace-expansion Regular Expression Denial of Service vulnerability · CVE-2025-5889 · GitHub Advisory Database · GitHub
brace-expansion Regular Expression Denial of Service vulnerability - brace-expansion Regular Expression Denial of Service vulnerability · CVE-2025-5889 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/brace-expansion
node_modules/glob/node_modules/brace-expansion
node_modules/test-exclude/node_modules/brace-expansion
braces <3.0.3
Severity: high
Uncontrolled resource consumption in braces - Uncontrolled resource consumption in braces · CVE-2024-4068 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/braces
cookie <0.7.0
cookie accepts cookie name, path, and domain with out of bounds characters - cookie accepts cookie name, path, and domain with out of bounds characters · CVE-2024-47764 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/cookie
cross-spawn 7.0.0 - 7.0.4
Severity: high
Regular Expression Denial of Service (ReDoS) in cross-spawn - Regular Expression Denial of Service (ReDoS) in cross-spawn · CVE-2024-21538 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/cross-spawn
form-data 4.0.0 - 4.0.3
Severity: critical
form-data uses unsafe random function in form-data for choosing boundary - form-data uses unsafe random function in form-data for choosing boundary · CVE-2025-7783 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/form-data
formidable 2.1.0 - 2.1.2
Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content - Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content · CVE-2025-46653 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/formidable
get-func-name <2.0.1
Severity: high
Chaijs/get-func-name vulnerable to ReDoS - Chaijs/get-func-name vulnerable to ReDoS · CVE-2023-43646 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/get-func-name
nanoid <3.3.8
Severity: moderate
Predictable results in nanoid generation when given non-integer values - Predictable results in nanoid generation when given non-integer values · CVE-2024-55565 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/nanoid
mocha 8.2.0 - 10.5.2
Depends on vulnerable versions of nanoid
Depends on vulnerable versions of serialize-javascript
node_modules/mocha
path-to-regexp <=0.1.11
Severity: high
path-to-regexp outputs backtracking regular expressions - path-to-regexp outputs backtracking regular expressions · CVE-2024-45296 · GitHub Advisory Database · GitHub
path-to-regexp contains a ReDoS - path-to-regexp contains a ReDoS · CVE-2024-52798 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/path-to-regexp
send <0.19.0
send vulnerable to template injection that can lead to XSS - send vulnerable to template injection that can lead to XSS · CVE-2024-43799 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/send
serve-static <=1.16.0
Depends on vulnerable versions of send
node_modules/serve-static
serialize-javascript 6.0.0 - 6.0.1
Severity: moderate
Cross-site Scripting (XSS) in serialize-javascript - Cross-site Scripting (XSS) in serialize-javascript · CVE-2024-11831 · GitHub Advisory Database · GitHub
fix available via npm audit fix
node_modules/serialize-javascript
16 vulnerabilities (5 low, 4 moderate, 6 high, 1 critical)
To address all issues, run:
npm audit fix
- true
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Unit Testing)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh - npm test
Solar [email protected] test
mocha app-test.js --timeout 10000 --reporter mocha-junit-reporter --exit
(node:39187) [DEP0040] DeprecationWarning: The punycode
module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ...
to show where the warning was created)
(node:39187) [MONGOOSE] DeprecationWarning: Mongoose: the strictQuery
option will be switched back to false
by default in Mongoose 7. Use mongoose.set('strictQuery', false);
if you want to prepare for this change. Or use mongoose.set('strictQuery', true);
to suppress this warning.
Server successfully running on port - 3000
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Code Coverage)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] catchError
[Pipeline] {
[Pipeline] sh
- npm run coverage
Solar [email protected] coverage
nyc --reporter cobertura --reporter lcov --reporter text --reporter json-summary mocha app-test.js --timeout 10000 --exit
(node:39238) [DEP0040] DeprecationWarning: The punycode
module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ...
to show where the warning was created)
(node:39238) [MONGOOSE] DeprecationWarning: Mongoose: the strictQuery
option will be switched back to false
by default in Mongoose 7. Use mongoose.set('strictQuery', false);
if you want to prepare for this change. Or use mongoose.set('strictQuery', true);
to suppress this warning.
Server successfully running on port - 3000
Planets API Suite
Fetching Planet Details
it should fetch a planet named Mercury (838ms)
it should fetch a planet named Venus
it should fetch a planet named Earth
it should fetch a planet named Mars
it should fetch a planet named Jupiter
it should fetch a planet named Satrun
it should fetch a planet named Uranus
it should fetch a planet named Neptune
Testing Other Endpoints
it should fetch OS Details
it should fetch OS details
it should fetch Live Status
it checks Liveness endpoint
it should fetch Ready Status
it checks Readiness endpoint
11 passing (1s)
ERROR: Coverage for lines (79.06%) does not meet global threshold (90%)
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---|---|---|---|---|---|
All files | 79.54 | 33.33 | 70 | 79.06 | |
app.js | 79.54 | 33.33 | 70 | 79.06 | 23,49-50,58,62-67 |
---------- | --------- | ---------- | --------- | --------- | ------------------- |
[Pipeline] } | |||||
ERROR: Oops! it will be fixed in futher releases | |||||
ERROR: script returned exit code 1 | |||||
[Pipeline] // catchError | |||||
[Pipeline] } | |||||
[Pipeline] // withEnv | |||||
[Pipeline] } | |||||
[Pipeline] // stage | |||||
[Pipeline] stage | |||||
[Pipeline] { (Build Docker Image) | |||||
[Pipeline] tool | |||||
[Pipeline] envVarsForTool | |||||
[Pipeline] withEnv | |||||
[Pipeline] { | |||||
[Pipeline] script | |||||
[Pipeline] { | |||||
[Pipeline] sh |
- docker build -t kodekloud-hub:5000/solar-system:9ef69011df4982dfc4ebcd95ea40eddfb3f50602 .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
Docker Build Overview | Docker Docs
Sending build context to Docker daemon 231.4kB
Step 1/10 : FROM node:18-alpine3.19
—> bfd9adf99dc2
Step 2/10 : WORKDIR /usr/app
—> Using cache
—> e6e98a90e39f
Step 3/10 : COPY package*.json /usr/app/
—> Using cache
—> 467b3a77682b
Step 4/10 : RUN npm install
—> Using cache
—> 028c591f4d15
Step 5/10 : COPY . .
—> 43ccadd20cbe
Step 6/10 : ENV MONGO_URI=uriPlaceholder
—> Running in 14834c806dcb
Removing intermediate container 14834c806dcb
—> 1e0e75aff77a
Step 7/10 : ENV MONGO_USERNAME=usernamePlaceholder
—> Running in a0731cc49598
Removing intermediate container a0731cc49598
—> 2831a38f20b2
Step 8/10 : ENV MONGO_PASSWORD=passwordPlaceholder
—> Running in 80e4bc094856
Removing intermediate container 80e4bc094856
—> 2fd1892e85c5
Step 9/10 : EXPOSE 3000
—> Running in 8aba4bcebc02
Removing intermediate container 8aba4bcebc02
—> 074724fbd3af
Step 10/10 : CMD [ “npm”, “start” ]
—> Running in b0fbfe21f8ae
Removing intermediate container b0fbfe21f8ae
—> 8498f25abf7a
Successfully built 8498f25abf7a
Successfully tagged kodekloud-hub:5000/solar-system:9ef69011df4982dfc4ebcd95ea40eddfb3f50602
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Trivy Scan)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
- trivy image kodekloud-hub:5000/solar-system:9ef69011df4982dfc4ebcd95ea40eddfb3f50602 --severity CRITICAL --exit-code 0 --format json -o trivy-image-CRITICAL-results.json
2025-09-06T21:50:56Z INFO [vuln] Vulnerability scanning is enabled
2025-09-06T21:50:56Z INFO [secret] Secret scanning is enabled
2025-09-06T21:50:56Z INFO [secret] If your scanning is slow, please try ‘–scanners vuln’ to disable secret scanning
2025-09-06T21:50:56Z INFO [secret] Please see also Secret - Trivy for faster secret detection
2025-09-06T21:50:58Z INFO Detected OS family=“alpine” version=“3.19.4”
2025-09-06T21:50:58Z INFO [alpine] Detecting vulnerabilities… os_version=“3.19” repository=“3.19” pkg_num=17
2025-09-06T21:50:58Z INFO Number of language-specific files num=1
2025-09-06T21:50:58Z INFO [node-pkg] Detecting vulnerabilities…
2025-09-06T21:50:58Z WARN Using severities from other vendors for some vulnerabilities. Read Vulnerability - Trivy for details.
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Publish Image - DockerHub)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] withDockerRegistry
$ docker login -u max -p ******** http://kodekloud-hub:5000
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /var/lib/jenkins/workspace/lar-system_feature_enabling-cicd@tmp/aa0cf218-e5bf-4ad2-a795-21032b5a94a9/config.json.
Configure a credential helper to remove this warning. See
docker login | Docker Docs
Login Succeeded
[Pipeline] {
[Pipeline] sh
- docker push kodekloud-hub:5000/solar-system:9ef69011df4982dfc4ebcd95ea40eddfb3f50602
The push refers to repository [kodekloud-hub:5000/solar-system]
4fd481194630: Preparing
07b2762eb2a6: Preparing
99f9eb38171e: Preparing
a8e04947f63d: Preparing
a9eeb1a06481: Preparing
1cedd4233f03: Preparing
4c28a02e51a4: Preparing
ba79b2c01278: Preparing
1cedd4233f03: Waiting
4c28a02e51a4: Waiting
ba79b2c01278: Waiting
07b2762eb2a6: Layer already exists
a9eeb1a06481: Layer already exists
a8e04947f63d: Layer already exists
99f9eb38171e: Layer already exists
4c28a02e51a4: Layer already exists
1cedd4233f03: Layer already exists
ba79b2c01278: Layer already exists
4fd481194630: Pushed
9ef69011df4982dfc4ebcd95ea40eddfb3f50602: digest: sha256:43b33c88846114062f0ff10d18a94298ce79e4b6976b5ab74dddedeecd9c611e size: 1995
[Pipeline] }
[Pipeline] // withDockerRegistry
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Localstack - AWS S3)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withAWS
Constructing AWS CredentialsSetting AWS region us-east-1
Setting AWS endpointUrl http://localhost:4566
[Pipeline] {
[Pipeline] sh - ls -ltr
total 284
-rw-r–r-- 1 jenkins jenkins 856 Sep 6 21:40 package.json
-rw-r–r-- 1 jenkins jenkins 3662 Sep 6 21:40 oas.json
-rw-r–r-- 1 jenkins jenkins 4950 Sep 6 21:40 index.html
-rw-r–r-- 1 jenkins jenkins 2396 Sep 6 21:40 app.js
-rw-r–r-- 1 jenkins jenkins 5956 Sep 6 21:40 app-test.js
-rw-r–r-- 1 jenkins jenkins 2050 Sep 6 21:40 app-controller.js
-rw-r–r-- 1 jenkins jenkins 1258 Sep 6 21:40 README.md
-rw-r–r-- 1 jenkins jenkins 243 Sep 6 21:40 Dockerfile
drwxr-xr-x 3 jenkins jenkins 4096 Sep 6 21:40 coverage
drwxr-xr-x 3 jenkins jenkins 4096 Sep 6 21:40 reports-10
-rw-r–r-- 1 jenkins jenkins 3497 Sep 6 21:50 Jenkinsfile
-rw-r–r-- 1 jenkins jenkins 745 Sep 6 21:50 jenkins-deploy-key.pub
-rw-r–r-- 1 jenkins jenkins 3243 Sep 6 21:50 jenkins-deploy-key
drwxr-xr-x 272 jenkins jenkins 12288 Sep 6 21:50 node_modules
-rw-r–r-- 1 jenkins jenkins 196097 Sep 6 21:50 package-lock.json
-rw-r–r-- 1 jenkins jenkins 3443 Sep 6 21:50 test-results.xml
-rw-r–r-- 1 jenkins jenkins 13103 Sep 6 21:50 trivy-image-CRITICAL-results.json - mkdir reports-11
- cp -rf coverage/ reports-11/
- cp test-results.xml trivy-image-CRITICAL-results.json reports-11/
- ls -ltr reports-11/
total 24
-rw-r–r-- 1 jenkins jenkins 13103 Sep 6 21:50 trivy-image-CRITICAL-results.json
-rw-r–r-- 1 jenkins jenkins 3443 Sep 6 21:50 test-results.xml
drwxr-xr-x 3 jenkins jenkins 4096 Sep 6 21:50 coverage
[Pipeline] s3Upload
Uploading file:/var/lib/jenkins/workspace/lar-system_feature_enabling-cicd/reports-11/ to s3://solar-system-jenkins-reports-bucket/jenkins-11/
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/prettify.css
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/index.html
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/favicon.png
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/base.css
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/test-results.xml
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/sorter.js
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/block-navigation.js
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/sort-arrow-sprite.png
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/prettify.js
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov-report/app.js.html
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/cobertura-coverage.xml
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/coverage-summary.json
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/coverage/lcov.info
Finished: Uploading to solar-system-jenkins-reports-bucket/jenkins-11/trivy-image-CRITICAL-results.json
Upload complete
[Pipeline] }
[Pipeline] // withAWS
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy to VM)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sshagent
[ssh-agent] Using credentials root (vm-dev-deploy-instance)
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXWJ12Lk/agent.39620
SSH_AGENT_PID=39623
Running ssh-add (command line suppressed)
Error loading key “/var/lib/jenkins/workspace/lar-system_feature_enabling-cicd@tmp/private_key_12879441767232728446.key”: error in libcrypto
[Pipeline] // sshagent
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] junit
Recording test results
[Checks API] No suitable checks publisher found.
[Pipeline] publishHTML
[htmlpublisher] Archiving HTML reports…
[htmlpublisher] Archiving at BUILD level /var/lib/jenkins/workspace/lar-system_feature_enabling-cicd/coverage/lcov-report to /var/lib/jenkins/jobs/Gitea-Dasher-Org-Project/jobs/solar-system/branches/feature-enabling-cicd.do7rqr/builds/11/htmlreports/Code_20Coverage_20HTML_20Report
[htmlpublisher] Copying recursive using current thread
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Failed to run ssh-add
[Gitea] Notifying branch build status: FAILURE There was a failure building this commit
[Gitea] Notified
[Gitea] do not publish assets due to build being non-Successfully
Finished: FAILURE