Skip to content
Success

Console Output

Started by user José Bocanegra
Obtained Jenkinsfile from git https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E5_Front/
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Slave1 in /home/cecaduser/workspace/PA_202510_G83_E5_Front
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential josejbocanegra
Cloning the remote Git repository
Avoid second fetch
Checking out Revision 9a9c01882e5242690740d92e3e3369afa7355b90 (refs/remotes/origin/main)
Commit message: "Update sonar-project.properties"
First time build. Skipping changelog.
[Pipeline] }
Cloning repository https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E5_Front/
 > git init /home/cecaduser/workspace/PA_202510_G83_E5_Front # timeout=10
Fetching upstream changes from https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E5_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_E5_Front/ +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E5_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 9a9c01882e5242690740d92e3e3369afa7355b90 # timeout=10
[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 9a9c01882e5242690740d92e3e3369afa7355b90 (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
 > git rev-parse --resolve-git-dir /home/cecaduser/workspace/PA_202510_G83_E5_Front/.git # timeout=10
 > git config remote.origin.url https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E5_Front # timeout=10
Fetching upstream changes from https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E5_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_E5_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 9a9c01882e5242690740d92e3e3369afa7355b90 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b main 9a9c01882e5242690740d92e3e3369afa7355b90 # timeout=10
+ 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_E5_Front -v /home/cecaduser/workspace/PA_202510_G83_E5_Front:/home/cecaduser/workspace/PA_202510_G83_E5_Front:rw,z -v /home/cecaduser/workspace/PA_202510_G83_E5_Front@tmp:/home/cecaduser/workspace/PA_202510_G83_E5_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 cef361e683fac064140a6aa3cf5a41246808f1970ff90a72e4cbc30052c43bb7 -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
One 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 may break at any time.

babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. 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.
  
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 cef361e683fac064140a6aa3cf5a41246808f1970ff90a72e4cbc30052c43bb7
$ docker rm -f --volumes cef361e683fac064140a6aa3cf5a41246808f1970ff90a72e4cbc30052c43bb7
[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_E5_Front -v /home/cecaduser/workspace/PA_202510_G83_E5_Front:/home/cecaduser/workspace/PA_202510_G83_E5_Front:rw,z -v /home/cecaduser/workspace/PA_202510_G83_E5_Front@tmp:/home/cecaduser/workspace/PA_202510_G83_E5_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 c1a1f342b35e4a369b888d9b1d928345f067415d0f1e412d4fc49f9d31d9724d -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.

      4 |
      5 | test('renders learn react link', () => {
    > 6 |   render(<App />);
        |         ^
      7 |   const linkElement = screen.getByText(/learn react/i);
      8 |   expect(linkElement).toBeInTheDocument();
      9 | });

      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 (84 ms)

One 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 may break at any time.

babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. 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.
  
------------------------------|---------|----------|---------|---------|-------------------
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:        6.09 s
Ran all test suites matching /./i.
[Pipeline] }
$ docker stop --time=1 c1a1f342b35e4a369b888d9b1d928345f067415d0f1e412d4fc49f9d31d9724d
$ docker rm -f --volumes c1a1f342b35e4a369b888d9b1d928345f067415d0f1e412d4fc49f9d31d9724d
[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_E5_Front:/usr/src sonarsource/sonar-scanner-cli
14:55:42.132 INFO  Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
14:55:42.138 INFO  Project root configuration file: /usr/src/sonar-project.properties
14:55:42.158 INFO  SonarScanner CLI 7.1.0.4889
14:55:42.160 INFO  Java 17.0.14 Amazon.com Inc. (64-bit)
14:55:42.160 INFO  Linux 6.11.0-19-generic amd64
14:55:42.236 INFO  User cache: /opt/sonar-scanner/.sonar/cache
14:55:44.130 INFO  Communicating with SonarQube Community Build 25.3.0.104237
14:55:44.134 INFO  JRE provisioning: os[linux], arch[x86_64]
14:55:47.223 INFO  Starting SonarScanner Engine...
14:55:47.226 INFO  Java 17.0.13 Eclipse Adoptium (64-bit)
14:55:49.300 INFO  Load global settings
14:55:49.406 INFO  Load global settings (done) | time=105ms
14:55:49.410 INFO  Server id: 243B8A4D-AZWSB3madBdjq_cKUIEO
14:55:49.431 INFO  Loading required plugins
14:55:49.431 INFO  Load plugins index
14:55:49.483 INFO  Load plugins index (done) | time=52ms
14:55:49.485 INFO  Load/download plugins
14:55:50.161 INFO  Load/download plugins (done) | time=676ms
14:55:50.602 INFO  Process project properties
14:55:50.622 INFO  Process project properties (done) | time=25ms
14:55:50.654 INFO  Project key: PA_202510_G83_E5_Front:sonar
14:55:50.655 INFO  Base dir: /usr/src
14:55:50.657 INFO  Working dir: /tmp/.scannerwork
14:55:50.672 INFO  Load project settings for component key: 'PA_202510_G83_E5_Front:sonar'
14:55:50.743 INFO  Load quality profiles
14:55:50.820 INFO  Load quality profiles (done) | time=80ms
14:55:50.905 INFO  Load active rules
14:55:51.370 INFO  Load active rules (done) | time=465ms
14:55:51.384 INFO  Load analysis cache
14:55:51.388 INFO  Load analysis cache (404) | time=5ms
14:55:51.519 INFO  Preprocessing files...
14:55:51.728 INFO  2 languages detected in 10 preprocessed files
14:55:51.730 INFO  0 files ignored because of inclusion/exclusion patterns
14:55:51.733 INFO  0 files ignored because of scm ignore settings
14:55:51.734 INFO  Loading plugins for detected languages
14:55:51.734 INFO  Load/download plugins
14:55:52.898 INFO  Load/download plugins (done) | time=1171ms
14:55:53.211 INFO  Load project repositories
14:55:53.220 INFO  Load project repositories (done) | time=11ms
14:55:53.261 INFO  Indexing files...
14:55:53.261 INFO  Project configuration:
14:55:53.263 INFO    Excluded sources: **/*.module.ts, **/utils/**, **/*.spec.ts
14:55:53.263 INFO    Included tests: **/*.spec.ts
14:55:53.318 INFO  10 files indexed
14:55:53.323 INFO  Quality profile for css: Sonar way
14:55:53.326 INFO  Quality profile for js: Sonar way
14:55:53.326 INFO  ------------- Run sensors on module PA_202510_G83_E5_Front
14:55:53.403 INFO  Load metrics repository
14:55:53.442 INFO  Load metrics repository (done) | time=38ms
14:55:54.287 INFO  Sensor JaCoCo XML Report Importer [jacoco]
14:55:54.288 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:54.297 INFO  No report imported, no coverage information will be imported by JaCoCo XML Report Importer
14:55:54.299 INFO  Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
14:55:54.307 INFO  Sensor Java Config Sensor [iac]
14:55:54.318 INFO  0 source files to be analyzed
14:55:54.334 INFO  0/0 source files have been analyzed
14:55:54.338 INFO  Sensor Java Config Sensor [iac] (done) | time=46ms
14:55:54.338 INFO  Sensor HTML [web]
14:55:54.357 INFO  Sensor HTML [web] (done) | time=8ms
14:55:54.357 INFO  Sensor JavaScript/TypeScript analysis [javascript]
14:55:54.747 INFO  Detected os: Linux arch: amd64 alpine: false. Platform: LINUX_X64
14:55:54.748 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:59.259 INFO  Using embedded Node.js runtime.
14:55:59.261 INFO  Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'.
14:56:01.502 INFO  Memory configuration: OS (7940 MB), Node.js (2096 MB).
14:56:03.812 INFO  Found 0 tsconfig.json file(s): []
14:56:03.848 INFO  Creating TypeScript program
14:56:03.851 INFO  TypeScript configuration file /tmp/tmp-105-O51xu8SqGXn4
14:56:03.858 INFO  7 source files to be analyzed
14:56:05.056 INFO  Starting analysis with current program
14:56:06.634 INFO  Analyzed 7 file(s) with current program
14:56:06.667 INFO  7/7 source files have been analyzed
14:56:06.670 INFO  Hit the cache for 0 out of 7
14:56:06.678 INFO  Miss the cache for 7 out of 7: ANALYSIS_MODE_INELIGIBLE [7/7]
14:56:06.681 INFO  Sensor JavaScript/TypeScript analysis [javascript] (done) | time=12335ms
14:56:06.681 INFO  Sensor CSS Rules [javascript]
14:56:06.698 INFO  2 source files to be analyzed
14:56:06.795 INFO  2/2 source files have been analyzed
14:56:06.795 INFO  Hit the cache for 0 out of 0
14:56:06.796 INFO  Miss the cache for 0 out of 0
14:56:06.797 INFO  Sensor CSS Rules [javascript] (done) | time=117ms
14:56:06.797 INFO  Sensor JavaScript/TypeScript Coverage [javascript]
14:56:06.798 INFO  Analysing [/usr/src/coverage/lcov.info]
14:56:06.809 INFO  Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=13ms
14:56:06.809 INFO  Sensor CSS Metrics [javascript]
14:56:06.831 INFO  Sensor CSS Metrics [javascript] (done) | time=20ms
14:56:06.831 INFO  Sensor IaC Docker Sensor [iac]
14:56:06.903 INFO  0 source files to be analyzed
14:56:06.904 INFO  0/0 source files have been analyzed
14:56:06.905 INFO  Sensor IaC Docker Sensor [iac] (done) | time=76ms
14:56:06.905 INFO  Sensor TextAndSecretsSensor [text]
14:56:06.906 INFO  Available processors: 4
14:56:06.906 INFO  Using 4 threads for analysis.
14:56:07.272 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:56:07.288 INFO  Using git CLI to retrieve untracked files
14:56:07.293 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:56:07.308 INFO  9 source files to be analyzed
14:56:07.353 INFO  9/9 source files have been analyzed
14:56:07.355 INFO  Sensor TextAndSecretsSensor [text] (done) | time=450ms
14:56:07.359 INFO  ------------- Run sensors on project
14:56:07.498 INFO  Sensor Zero Coverage Sensor
14:56:07.500 INFO  Sensor Zero Coverage Sensor (done) | time=2ms
14:56:07.500 INFO  ------------- Gather SCA dependencies on project
14:56:07.505 INFO  SCM Publisher SCM provider for this project is: git
14:56:07.505 INFO  SCM Publisher 9 source files to be analyzed
14:56:07.851 INFO  SCM Publisher 9/9 source files have been analyzed (done) | time=346ms
14:56:07.855 INFO  CPD Executor 3 files had no CPD blocks
14:56:07.855 INFO  CPD Executor Calculating CPD for 4 files
14:56:07.863 INFO  CPD Executor CPD calculation finished (done) | time=7ms
14:56:07.869 INFO  SCM revision ID '9a9c01882e5242690740d92e3e3369afa7355b90'
14:56:08.058 INFO  Analysis report generated in 189ms, dir size=258.5 kB
14:56:08.095 INFO  Analysis report compressed in 35ms, zip size=50.2 kB
14:56:08.227 INFO  Analysis report uploaded in 131ms
14:56:08.228 INFO  ANALYSIS SUCCESSFUL, you can find the results at: http://10.20.84.26:8082/sonar/dashboard?id=PA_202510_G83_E5_Front%3Asonar
14:56:08.228 INFO  Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
14:56:08.228 INFO  More about the report processing at http://10.20.84.26:8082/sonar/api/ce/task?id=72db18b1-d38f-4c5c-b7be-ebc2bfed59be
14:56:08.382 INFO  Analysis total time: 18.161 s
14:56:08.383 INFO  SonarScanner Engine completed successfully
14:56:08.735 INFO  EXECUTION SUCCESS
14:56:08.737 INFO  Total time: 26.610s
[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