Started by user José Bocanegra
Obtained Jenkinsfile from git https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E3_Front/
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Slave1 in /home/cecaduser/workspace/PA_202510_G83_E3_Front
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential josejbocanegra
Cloning the remote Git repository
Cloning repository https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E3_Front/
> git init /home/cecaduser/workspace/PA_202510_G83_E3_Front # timeout=10
Fetching upstream changes from https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E3_Front/
> git --version # timeout=10
> git --version # 'git version 2.49.0'
using GIT_ASKPASS to set credentials
> git fetch --tags --force --progress -- https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E3_Front/ +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 3baf7fda3a1685df1372187053da266da28abd9d (refs/remotes/origin/main)
> git config remote.origin.url https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E3_Front/ # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/main^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f 3baf7fda3a1685df1372187053da266da28abd9d # timeout=10
Commit message: "Update sonar-project.properties"
First time build. Skipping changelog.
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withCredentials
Masking supported pattern matches of $SONAR_TOKEN
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] scmSkip
[Pipeline] git
The recommended git tool is: NONE
Warning: CredentialId "c0e8826e-5e2c-4c1c-a484-6c17d53ac539" could not be found.
Fetching changes from the remote Git repository
Checking out Revision 3baf7fda3a1685df1372187053da266da28abd9d (refs/remotes/origin/main)
Commit message: "Update sonar-project.properties"
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] script
[Pipeline] {
[Pipeline] isUnix
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ docker inspect -f . nodetools-isis2603:latest
.
[Pipeline] }
[Pipeline] // withEnv
> git rev-parse --resolve-git-dir /home/cecaduser/workspace/PA_202510_G83_E3_Front/.git # timeout=10
> git config remote.origin.url https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E3_Front # timeout=10
Fetching upstream changes from https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E3_Front
> git --version # timeout=10
> git --version # 'git version 2.49.0'
> git fetch --tags --force --progress -- https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E3_Front +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/main^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f 3baf7fda3a1685df1372187053da266da28abd9d # timeout=10
> git branch -a -v --no-abbrev # timeout=10
> git checkout -b main 3baf7fda3a1685df1372187053da266da28abd9d # timeout=10
[Pipeline] withDockerContainer
Slave1 does not seem to be running inside a container
$ docker run -t -d -u 1000:1000 -u root -w /home/cecaduser/workspace/PA_202510_G83_E3_Front -v /home/cecaduser/workspace/PA_202510_G83_E3_Front:/home/cecaduser/workspace/PA_202510_G83_E3_Front:rw,z -v /home/cecaduser/workspace/PA_202510_G83_E3_Front@tmp:/home/cecaduser/workspace/PA_202510_G83_E3_Front@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nodetools-isis2603:latest cat
$ docker top 4dbda3481c9eb058badeaebbdee595bb2bc5f359fef9f8f496a43d4c66929db3 -eo pid,comm
[Pipeline] {
[Pipeline] sh
+ npm i -s
+ npm run build
> frontend@0.1.0 build
> react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
[0;33mOne of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it [1mmay break at any time[0;33m.
babel-preset-react-app is part of the create-react-app project, [1mwhich
is not maintianed anymore[0;33m. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.[0m
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Compiled successfully.
File sizes after gzip:
46.74 kB build/static/js/main.8279fe88.js
1.77 kB build/static/js/453.8ab44547.chunk.js
513 B build/static/css/main.f855e6bc.css
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s build
Find out more about deployment here:
https://cra.link/deployment
[Pipeline] }
$ docker stop --time=1 4dbda3481c9eb058badeaebbdee595bb2bc5f359fef9f8f496a43d4c66929db3
$ docker rm -f --volumes 4dbda3481c9eb058badeaebbdee595bb2bc5f359fef9f8f496a43d4c66929db3
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] script
[Pipeline] {
[Pipeline] isUnix
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ docker inspect -f . nodetools-isis2603:latest
.
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] withDockerContainer
Slave1 does not seem to be running inside a container
$ docker run -t -d -u 1000:1000 -u root -w /home/cecaduser/workspace/PA_202510_G83_E3_Front -v /home/cecaduser/workspace/PA_202510_G83_E3_Front:/home/cecaduser/workspace/PA_202510_G83_E3_Front:rw,z -v /home/cecaduser/workspace/PA_202510_G83_E3_Front@tmp:/home/cecaduser/workspace/PA_202510_G83_E3_Front@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nodetools-isis2603:latest cat
$ docker top 50e898bdb16fc2f78aa86b399f129814708f6575dbfea6081824259071a0d025 -eo pid,comm
[Pipeline] {
[Pipeline] sh
+ CI=true npm run test -- --coverage .
> frontend@0.1.0 test
> react-scripts test --coverage .
console.error
Warning: `ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.
[0m [90m 4 |[39m
[90m 5 |[39m test([32m'renders learn react link'[39m[33m,[39m () [33m=>[39m {
[31m[1m>[22m[39m[90m 6 |[39m render([33m<[39m[33mApp[39m [33m/[39m[33m>[39m)[33m;[39m
[90m |[39m [31m[1m^[22m[39m
[90m 7 |[39m [36mconst[39m linkElement [33m=[39m screen[33m.[39mgetByText([35m/learn react/i[39m)[33m;[39m
[90m 8 |[39m expect(linkElement)[33m.[39mtoBeInTheDocument()[33m;[39m
[90m 9 |[39m })[33m;[39m[0m
at printWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:71:30)
at error (node_modules/react-dom/cjs/react-dom-test-utils.development.js:45:7)
at actWithWarning (node_modules/react-dom/cjs/react-dom-test-utils.development.js:1736:7)
at node_modules/@testing-library/react/dist/act-compat.js:63:25
at renderRoot (node_modules/@testing-library/react/dist/pure.js:159:26)
at render (node_modules/@testing-library/react/dist/pure.js:246:10)
at Object.<anonymous> (src/App.test.js:6:9)
at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
at runJest (node_modules/@jest/core/build/runJest.js:404:19)
at _run10000 (node_modules/@jest/core/build/cli/index.js:320:7)
at runCLI (node_modules/@jest/core/build/cli/index.js:173:3)
PASS src/App.test.js
✓ renders learn react link (77 ms)
[0;33mOne of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it [1mmay break at any time[0;33m.
babel-preset-react-app is part of the create-react-app project, [1mwhich
is not maintianed anymore[0;33m. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.[0m
------------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------------------------|---------|----------|---------|---------|-------------------
All files | 1.47 | 0 | 4.54 | 1.47 |
App.js | 100 | 100 | 100 | 100 |
index.js | 0 | 100 | 100 | 0 | 8-23
reportWebVitals.js | 0 | 0 | 0 | 0 | 1-8
service-worker.js | 0 | 0 | 0 | 0 | 16-68
serviceWorkerRegistration.js | 0 | 0 | 0 | 0 | 13-134
------------------------------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 4.277 s
Ran all test suites matching /./i.
[Pipeline] }
$ docker stop --time=1 50e898bdb16fc2f78aa86b399f129814708f6575dbfea6081824259071a0d025
$ docker rm -f --volumes 50e898bdb16fc2f78aa86b399f129814708f6575dbfea6081824259071a0d025
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Static Analysis)
[Pipeline] sh
+ docker run --rm -u root -e SONAR_HOST_URL=http://10.20.84.26:8082/sonar -e SONAR_TOKEN=**** -v /home/cecaduser/workspace/PA_202510_G83_E3_Front:/usr/src sonarsource/sonar-scanner-cli
Unable to find image 'sonarsource/sonar-scanner-cli:latest' locally
latest: Pulling from sonarsource/sonar-scanner-cli
9ec3516d0f4b: Pulling fs layer
a7a1c0f1b5e3: Pulling fs layer
e50ced8d5c7e: Pulling fs layer
3ded020a7537: Pulling fs layer
d277aafe6ec2: Pulling fs layer
4f4fb700ef54: Pulling fs layer
3ded020a7537: Waiting
d277aafe6ec2: Waiting
4f4fb700ef54: Waiting
e50ced8d5c7e: Verifying Checksum
e50ced8d5c7e: Download complete
9ec3516d0f4b: Download complete
d277aafe6ec2: Verifying Checksum
d277aafe6ec2: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
a7a1c0f1b5e3: Verifying Checksum
a7a1c0f1b5e3: Download complete
9ec3516d0f4b: Pull complete
3ded020a7537: Verifying Checksum
3ded020a7537: Download complete
a7a1c0f1b5e3: Pull complete
e50ced8d5c7e: Pull complete
3ded020a7537: Pull complete
d277aafe6ec2: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:cb01b71556950dedeef978c5c2d4d8648055cbb263349af5bcb1e047169d8be5
Status: Downloaded newer image for sonarsource/sonar-scanner-cli:latest
14:55:24.033 INFO Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
14:55:24.040 INFO Project root configuration file: /usr/src/sonar-project.properties
14:55:24.085 INFO SonarScanner CLI 7.1.0.4889
14:55:24.088 INFO Java 17.0.14 Amazon.com Inc. (64-bit)
14:55:24.088 INFO Linux 6.11.0-19-generic amd64
14:55:24.146 INFO User cache: /opt/sonar-scanner/.sonar/cache
14:55:26.164 INFO Communicating with SonarQube Community Build 25.3.0.104237
14:55:26.170 INFO JRE provisioning: os[linux], arch[x86_64]
14:55:29.571 INFO Starting SonarScanner Engine...
14:55:29.572 INFO Java 17.0.13 Eclipse Adoptium (64-bit)
14:55:31.596 INFO Load global settings
14:55:31.752 INFO Load global settings (done) | time=158ms
14:55:31.758 INFO Server id: 243B8A4D-AZWSB3madBdjq_cKUIEO
14:55:31.775 INFO Loading required plugins
14:55:31.778 INFO Load plugins index
14:55:31.825 INFO Load plugins index (done) | time=47ms
14:55:31.829 INFO Load/download plugins
14:55:32.362 INFO Load/download plugins (done) | time=538ms
14:55:32.981 INFO Process project properties
14:55:33.005 INFO Process project properties (done) | time=19ms
14:55:33.016 INFO Project key: PA_202510_G83_E3_Front:sonar
14:55:33.017 INFO Base dir: /usr/src
14:55:33.017 INFO Working dir: /tmp/.scannerwork
14:55:33.030 INFO Load project settings for component key: 'PA_202510_G83_E3_Front:sonar'
14:55:33.098 INFO Load quality profiles
14:55:33.168 INFO Load quality profiles (done) | time=72ms
14:55:33.256 INFO Load active rules
14:55:33.653 INFO Load active rules (done) | time=395ms
14:55:33.660 INFO Load analysis cache
14:55:33.662 INFO Load analysis cache (404) | time=5ms
14:55:33.737 INFO Preprocessing files...
14:55:34.032 INFO 2 languages detected in 10 preprocessed files
14:55:34.037 INFO 0 files ignored because of inclusion/exclusion patterns
14:55:34.039 INFO 0 files ignored because of scm ignore settings
14:55:34.039 INFO Loading plugins for detected languages
14:55:34.039 INFO Load/download plugins
14:55:35.167 INFO Load/download plugins (done) | time=1134ms
14:55:35.532 INFO Load project repositories
14:55:35.541 INFO Load project repositories (done) | time=9ms
14:55:35.574 INFO Indexing files...
14:55:35.574 INFO Project configuration:
14:55:35.575 INFO Excluded sources: **/*.module.ts, **/utils/**, **/*.spec.ts
14:55:35.576 INFO Included tests: **/*.spec.ts
14:55:35.652 INFO 10 files indexed
14:55:35.658 INFO Quality profile for css: Sonar way
14:55:35.658 INFO Quality profile for js: Sonar way
14:55:35.661 INFO ------------- Run sensors on module PA_202510_G83_E3_Front
14:55:35.770 INFO Load metrics repository
14:55:35.823 INFO Load metrics repository (done) | time=50ms
14:55:36.289 INFO Sensor JaCoCo XML Report Importer [jacoco]
14:55:36.301 INFO 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
14:55:36.305 INFO No report imported, no coverage information will be imported by JaCoCo XML Report Importer
14:55:36.311 INFO Sensor JaCoCo XML Report Importer [jacoco] (done) | time=18ms
14:55:36.312 INFO Sensor Java Config Sensor [iac]
14:55:36.353 INFO 0 source files to be analyzed
14:55:36.365 INFO 0/0 source files have been analyzed
14:55:36.369 INFO Sensor Java Config Sensor [iac] (done) | time=61ms
14:55:36.370 INFO Sensor HTML [web]
14:55:36.374 INFO Sensor HTML [web] (done) | time=8ms
14:55:36.375 INFO Sensor JavaScript/TypeScript analysis [javascript]
14:55:36.623 INFO Detected os: Linux arch: amd64 alpine: false. Platform: LINUX_X64
14:55:36.626 INFO Deploy location /opt/sonar-scanner/.sonar/js/node-runtime, tagetRuntime: /opt/sonar-scanner/.sonar/js/node-runtime/node, version: /opt/sonar-scanner/.sonar/js/node-runtime/version.txt
14:55:41.029 INFO Using embedded Node.js runtime.
14:55:41.030 INFO Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'.
14:55:43.647 INFO Memory configuration: OS (7940 MB), Node.js (2096 MB).
14:55:46.348 INFO Found 0 tsconfig.json file(s): []
14:55:46.395 INFO Creating TypeScript program
14:55:46.398 INFO TypeScript configuration file /tmp/tmp-105-Vs7EdUwB6vTu
14:55:46.402 INFO 7 source files to be analyzed
14:55:49.244 INFO Starting analysis with current program
14:55:52.574 INFO Analyzed 7 file(s) with current program
14:55:52.591 INFO 7/7 source files have been analyzed
14:55:52.591 INFO Hit the cache for 0 out of 7
14:55:52.591 INFO Miss the cache for 7 out of 7: ANALYSIS_MODE_INELIGIBLE [7/7]
14:55:52.592 INFO Sensor JavaScript/TypeScript analysis [javascript] (done) | time=16216ms
14:55:52.592 INFO Sensor CSS Rules [javascript]
14:55:52.604 INFO 2 source files to be analyzed
14:55:52.762 INFO 2/2 source files have been analyzed
14:55:52.766 INFO Hit the cache for 0 out of 0
14:55:52.766 INFO Miss the cache for 0 out of 0
14:55:52.766 INFO Sensor CSS Rules [javascript] (done) | time=173ms
14:55:52.766 INFO Sensor JavaScript/TypeScript Coverage [javascript]
14:55:52.767 INFO Analysing [/usr/src/coverage/lcov.info]
14:55:52.794 INFO Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=27ms
14:55:52.795 INFO Sensor CSS Metrics [javascript]
14:55:52.844 INFO Sensor CSS Metrics [javascript] (done) | time=51ms
14:55:52.845 INFO Sensor IaC Docker Sensor [iac]
14:55:53.023 INFO 0 source files to be analyzed
14:55:53.027 INFO 0/0 source files have been analyzed
14:55:53.034 INFO Sensor IaC Docker Sensor [iac] (done) | time=182ms
14:55:53.034 INFO Sensor TextAndSecretsSensor [text]
14:55:53.034 INFO Available processors: 4
14:55:53.034 INFO Using 4 threads for analysis.
14:55:53.863 INFO The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true:
* The filename starts with "test"
* The filename contains "test." or "tests."
* Any directory in the file path is named: "doc", "docs", "test" or "tests"
* Any directory in the file path has a name ending in "test" or "tests"
14:55:53.905 INFO Using git CLI to retrieve untracked files
14:55:53.924 WARN Analyzing only language associated files, make sure to run the analysis inside a git repository to make use of inclusions specified via "sonar.text.inclusions"
14:55:53.932 INFO 9 source files to be analyzed
14:55:54.059 INFO 9/9 source files have been analyzed
14:55:54.067 INFO Sensor TextAndSecretsSensor [text] (done) | time=1042ms
14:55:54.078 INFO ------------- Run sensors on project
14:55:54.396 INFO Sensor Zero Coverage Sensor
14:55:54.402 INFO Sensor Zero Coverage Sensor (done) | time=6ms
14:55:54.403 INFO ------------- Gather SCA dependencies on project
14:55:54.414 INFO SCM Publisher SCM provider for this project is: git
14:55:54.415 INFO SCM Publisher 9 source files to be analyzed
14:55:54.847 INFO SCM Publisher 9/9 source files have been analyzed (done) | time=423ms
14:55:54.855 INFO CPD Executor 3 files had no CPD blocks
14:55:54.861 INFO CPD Executor Calculating CPD for 4 files
14:55:54.873 INFO CPD Executor CPD calculation finished (done) | time=17ms
14:55:54.886 INFO SCM revision ID '3baf7fda3a1685df1372187053da266da28abd9d'
14:55:55.468 INFO Analysis report generated in 582ms, dir size=258.5 kB
14:55:55.553 INFO Analysis report compressed in 80ms, zip size=50.2 kB
14:55:55.742 INFO Analysis report uploaded in 188ms
14:55:55.749 INFO ANALYSIS SUCCESSFUL, you can find the results at: http://10.20.84.26:8082/sonar/dashboard?id=PA_202510_G83_E3_Front%3Asonar
14:55:55.749 INFO Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
14:55:55.750 INFO More about the report processing at http://10.20.84.26:8082/sonar/api/ce/task?id=a97da937-7bd9-44d4-9321-e00de3a2c3f7
14:55:55.946 INFO Analysis total time: 23.494 s
14:55:55.948 INFO SonarScanner Engine completed successfully
14:55:56.316 INFO EXECUTION SUCCESS
14:55:56.318 INFO Total time: 32.293s
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS