Skip to content
Success

Console Output

Started by user José Bocanegra
Obtained Jenkinsfile from git https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E2_Front/
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Slave3 in /home/cecaduser/workspace/PA_202510_G83_E2_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_E2_Front/
 > git init /home/cecaduser/workspace/PA_202510_G83_E2_Front # timeout=10
Fetching upstream changes from https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E2_Front/
 > git --version # timeout=10
 > git --version # 'git version 2.43.0'
using GIT_ASKPASS to set credentials 
 > git fetch --tags --force --progress -- https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E2_Front/ +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 7fec9169772a3daf064cf091017a51df2f92374a (refs/remotes/origin/main)
 > git config remote.origin.url https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E2_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 7fec9169772a3daf064cf091017a51df2f92374a # 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 7fec9169772a3daf064cf091017a51df2f92374a (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] }
 > git rev-parse --resolve-git-dir /home/cecaduser/workspace/PA_202510_G83_E2_Front/.git # timeout=10
 > git config remote.origin.url https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E2_Front # timeout=10
Fetching upstream changes from https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E2_Front
 > git --version # timeout=10
 > git --version # 'git version 2.43.0'
 > git fetch --tags --force --progress -- https://github.com/UDFJDC-ProgramacionAvanzada/PA_202510_G83_E2_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 7fec9169772a3daf064cf091017a51df2f92374a # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b main 7fec9169772a3daf064cf091017a51df2f92374a # timeout=10
[Pipeline] // withEnv
[Pipeline] withDockerContainer
Slave3 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_E2_Front -v /home/cecaduser/workspace/PA_202510_G83_E2_Front:/home/cecaduser/workspace/PA_202510_G83_E2_Front:rw,z -v /home/cecaduser/workspace/PA_202510_G83_E2_Front@tmp:/home/cecaduser/workspace/PA_202510_G83_E2_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 4508b06095057fa8c8bcec9f5fb29308ea00fe0780f7a46e5ce157a26af14210 -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 4508b06095057fa8c8bcec9f5fb29308ea00fe0780f7a46e5ce157a26af14210
$ docker rm -f --volumes 4508b06095057fa8c8bcec9f5fb29308ea00fe0780f7a46e5ce157a26af14210
[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
Slave3 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_E2_Front -v /home/cecaduser/workspace/PA_202510_G83_E2_Front:/home/cecaduser/workspace/PA_202510_G83_E2_Front:rw,z -v /home/cecaduser/workspace/PA_202510_G83_E2_Front@tmp:/home/cecaduser/workspace/PA_202510_G83_E2_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 2b73d166f6ed670bc64b0f49b7ee111327b16a5943b43b4df6708a9a24cfd71a -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 (69 ms)

------------------------------|---------|----------|---------|---------|-------------------
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:        3.171 s
Ran all test suites matching /./i.
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.
  
[Pipeline] }
$ docker stop --time=1 2b73d166f6ed670bc64b0f49b7ee111327b16a5943b43b4df6708a9a24cfd71a
$ docker rm -f --volumes 2b73d166f6ed670bc64b0f49b7ee111327b16a5943b43b4df6708a9a24cfd71a
[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_E2_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
d277aafe6ec2: Waiting
3ded020a7537: Waiting
4f4fb700ef54: Waiting
e50ced8d5c7e: Verifying Checksum
e50ced8d5c7e: Download complete
9ec3516d0f4b: Download complete
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:54:42.829 INFO  Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
14:54:42.834 INFO  Project root configuration file: /usr/src/sonar-project.properties
14:54:42.850 INFO  SonarScanner CLI 7.1.0.4889
14:54:42.852 INFO  Java 17.0.14 Amazon.com Inc. (64-bit)
14:54:42.853 INFO  Linux 6.11.0-19-generic amd64
14:54:42.892 INFO  User cache: /opt/sonar-scanner/.sonar/cache
14:54:43.890 INFO  Communicating with SonarQube Community Build 25.3.0.104237
14:54:43.892 INFO  JRE provisioning: os[linux], arch[x86_64]
14:54:46.616 INFO  Starting SonarScanner Engine...
14:54:46.617 INFO  Java 17.0.13 Eclipse Adoptium (64-bit)
14:54:47.970 INFO  Load global settings
14:54:48.070 INFO  Load global settings (done) | time=100ms
14:54:48.074 INFO  Server id: 243B8A4D-AZWSB3madBdjq_cKUIEO
14:54:48.096 INFO  Loading required plugins
14:54:48.097 INFO  Load plugins index
14:54:48.110 INFO  Load plugins index (done) | time=13ms
14:54:48.112 INFO  Load/download plugins
14:54:48.440 INFO  Load/download plugins (done) | time=331ms
14:54:48.775 INFO  Process project properties
14:54:48.788 INFO  Process project properties (done) | time=13ms
14:54:48.799 INFO  Project key: PA_202510_G83_E2_Front:sonar
14:54:48.800 INFO  Base dir: /usr/src
14:54:48.801 INFO  Working dir: /tmp/.scannerwork
14:54:48.808 INFO  Load project settings for component key: 'PA_202510_G83_E2_Front:sonar'
14:54:48.848 INFO  Load quality profiles
14:54:48.910 INFO  Load quality profiles (done) | time=61ms
14:54:48.951 INFO  Load active rules
14:54:49.189 INFO  Load active rules (done) | time=237ms
14:54:49.194 INFO  Load analysis cache
14:54:49.202 INFO  Load analysis cache (404) | time=8ms
14:54:49.265 INFO  Preprocessing files...
14:54:49.362 INFO  2 languages detected in 10 preprocessed files
14:54:49.364 INFO  0 files ignored because of inclusion/exclusion patterns
14:54:49.365 INFO  0 files ignored because of scm ignore settings
14:54:49.366 INFO  Loading plugins for detected languages
14:54:49.367 INFO  Load/download plugins
14:54:50.366 INFO  Load/download plugins (done) | time=999ms
14:54:50.539 INFO  Load project repositories
14:54:50.550 INFO  Load project repositories (done) | time=10ms
14:54:50.570 INFO  Indexing files...
14:54:50.570 INFO  Project configuration:
14:54:50.577 INFO    Excluded sources: **/*.module.ts, **/utils/**, **/*.spec.ts
14:54:50.577 INFO    Included tests: **/*.spec.ts
14:54:50.611 INFO  10 files indexed
14:54:50.616 INFO  Quality profile for css: Sonar way
14:54:50.618 INFO  Quality profile for js: Sonar way
14:54:50.619 INFO  ------------- Run sensors on module PA_202510_G83_E2_Front
14:54:50.655 INFO  Load metrics repository
14:54:50.675 INFO  Load metrics repository (done) | time=21ms
14:54:51.070 INFO  Sensor JaCoCo XML Report Importer [jacoco]
14:54:51.072 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:54:51.073 INFO  No report imported, no coverage information will be imported by JaCoCo XML Report Importer
14:54:51.074 INFO  Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
14:54:51.077 INFO  Sensor Java Config Sensor [iac]
14:54:51.096 INFO  0 source files to be analyzed
14:54:51.104 INFO  0/0 source files have been analyzed
14:54:51.106 INFO  Sensor Java Config Sensor [iac] (done) | time=33ms
14:54:51.108 INFO  Sensor HTML [web]
14:54:51.110 INFO  Sensor HTML [web] (done) | time=2ms
14:54:51.113 INFO  Sensor JavaScript/TypeScript analysis [javascript]
14:54:51.297 INFO  Detected os: Linux arch: amd64 alpine: false. Platform: LINUX_X64
14:54:51.298 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:54:55.326 INFO  Using embedded Node.js runtime.
14:54:55.327 INFO  Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'.
14:54:57.525 INFO  Memory configuration: OS (7940 MB), Node.js (2096 MB).
14:54:59.820 INFO  Found 0 tsconfig.json file(s): []
14:54:59.835 INFO  Creating TypeScript program
14:54:59.836 INFO  TypeScript configuration file /tmp/tmp-102-cPNdzQdemFlt
14:54:59.836 INFO  7 source files to be analyzed
14:55:00.922 INFO  Starting analysis with current program
14:55:02.673 INFO  Analyzed 7 file(s) with current program
14:55:02.682 INFO  7/7 source files have been analyzed
14:55:02.682 INFO  Hit the cache for 0 out of 7
14:55:02.683 INFO  Miss the cache for 7 out of 7: ANALYSIS_MODE_INELIGIBLE [7/7]
14:55:02.684 INFO  Sensor JavaScript/TypeScript analysis [javascript] (done) | time=11575ms
14:55:02.684 INFO  Sensor CSS Rules [javascript]
14:55:02.689 INFO  2 source files to be analyzed
14:55:02.791 INFO  2/2 source files have been analyzed
14:55:02.791 INFO  Hit the cache for 0 out of 0
14:55:02.792 INFO  Miss the cache for 0 out of 0
14:55:02.792 INFO  Sensor CSS Rules [javascript] (done) | time=108ms
14:55:02.793 INFO  Sensor JavaScript/TypeScript Coverage [javascript]
14:55:02.793 INFO  Analysing [/usr/src/coverage/lcov.info]
14:55:02.802 INFO  Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=11ms
14:55:02.803 INFO  Sensor CSS Metrics [javascript]
14:55:02.821 INFO  Sensor CSS Metrics [javascript] (done) | time=18ms
14:55:02.821 INFO  Sensor IaC Docker Sensor [iac]
14:55:02.902 INFO  0 source files to be analyzed
14:55:02.902 INFO  0/0 source files have been analyzed
14:55:02.902 INFO  Sensor IaC Docker Sensor [iac] (done) | time=81ms
14:55:02.902 INFO  Sensor TextAndSecretsSensor [text]
14:55:02.902 INFO  Available processors: 4
14:55:02.902 INFO  Using 4 threads for analysis.
14:55:03.276 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:03.316 INFO  Using git CLI to retrieve untracked files
14:55:03.321 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:03.330 INFO  9 source files to be analyzed
14:55:03.379 INFO  9/9 source files have been analyzed
14:55:03.380 INFO  Sensor TextAndSecretsSensor [text] (done) | time=478ms
14:55:03.384 INFO  ------------- Run sensors on project
14:55:03.514 INFO  Sensor Zero Coverage Sensor
14:55:03.517 INFO  Sensor Zero Coverage Sensor (done) | time=2ms
14:55:03.517 INFO  ------------- Gather SCA dependencies on project
14:55:03.520 INFO  SCM Publisher SCM provider for this project is: git
14:55:03.521 INFO  SCM Publisher 9 source files to be analyzed
14:55:03.876 INFO  SCM Publisher 9/9 source files have been analyzed (done) | time=354ms
14:55:03.881 INFO  CPD Executor 3 files had no CPD blocks
14:55:03.881 INFO  CPD Executor Calculating CPD for 4 files
14:55:03.889 INFO  CPD Executor CPD calculation finished (done) | time=8ms
14:55:03.897 INFO  SCM revision ID '7fec9169772a3daf064cf091017a51df2f92374a'
14:55:04.090 INFO  Analysis report generated in 193ms, dir size=258.5 kB
14:55:04.130 INFO  Analysis report compressed in 39ms, zip size=50.2 kB
14:55:04.449 INFO  Analysis report uploaded in 320ms
14:55:04.453 INFO  ANALYSIS SUCCESSFUL, you can find the results at: http://10.20.84.26:8082/sonar/dashboard?id=PA_202510_G83_E2_Front%3Asonar
14:55:04.453 INFO  Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
14:55:04.454 INFO  More about the report processing at http://10.20.84.26:8082/sonar/api/ce/task?id=1f1612d8-a1d6-4bcc-8a21-1f9222565388
14:55:04.598 INFO  Analysis total time: 16.091 s
14:55:04.599 INFO  SonarScanner Engine completed successfully
14:55:05.034 INFO  EXECUTION SUCCESS
14:55:05.036 INFO  Total time: 22.210s
[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