Analyze Javascript code (React Native, Typescript, Nodejs etc) with Sonarqube and Jenkins (or local)

Analyze Javascript code (React Native, Typescript, Nodejs etc) with Sonarqube and Jenkins (or local)

Tiempo de lectura: 3 minutos Today we’re going to see how to analyze JavaScript, React Native, or Node.js code using SonarQube and Jenkins. Install Node.js with Jenkins If we want to execute a project with JavaScript, we need to install Node.js on the machine where the scan is performed. In this case, on Jenkins. To do that, we install the … Read more

SonarQube Scanner PLUGIN for Jenkins, send your code to your Sonarqube server for analysis

SonarQube Scanner PLUGIN for Jenkins, send your code to your Sonarqube server for analysis

Tiempo de lectura: 2 minutos Reading time: 4 minutes Hello, today I’m going to show you how to install and send code to SonarQube using SonarQube Scanner Plugin and Jenkins. This way, we can create a stage within the CI/CD pipeline that is responsible for analyzing the code integration. The first thing we need to do is open Jenkins and … Read more

Fix stderr: error: object file .git/objects/ad/… is empty error using JENKINS

Fix stderr: error: object file .git/objects/ad/… is empty error using JENKINS

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Today, I’m going to show you how to fix the error when synchronizing a GIT project with Jenkins, which returns: stderr: error: object file .git/objects/ad/.... is empty error: object file .git/objects/ad/.... is empty This occurs because there is a corrupt file in the Jenkins Git. To fix it, we need ... Read more

Refreshing Screen on Return in React Native

Refreshing Screen on Return in React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If we want to refresh a screen when returning from another screen using React Native, we have to do the following: First, we import react-navigation import { useFocusEffect } from '@react-navigation/native'; Then, we add it in our render: useFocusEffect( React.useCallback(() => { }, []) ); Inside the React.useCallback block, we … Read more

Fix Target dart2js failed error: Exception: Warning: The ‘dart2js’ entrypoint script is deprecated, please use ‘dart compile js’ instead. In Flutter

Fix Target dart2js failed error: Exception: Warning: The ‘dart2js’ entrypoint script is deprecated, please use ‘dart compile js’ instead. In Flutter

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Today we’re going to see how to solve the following error: Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead. Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:http - package:http_parser This error is ... Read more

Notify via Discord when a Jenkins job or pipeline has finished.

Notify via Discord when a Jenkins job or pipeline has finished.

Tiempo de lectura: 3 minutos Reading time: 3 minutes Today I’m going to show you how we can send a notification to Discord when a Jenkins job is finished. First, we install the Discord Notifier plugin: https://plugins.jenkins.io/discord-notifier/ We search for it in Manage Jenkins > Available Plugins > Discord Notifier We install it by clicking on Install Without restart. Now … Read more

UTF-8 Encoding Solution when Receiving Data by Making a GET Request Using Flutter – Dart

UTF-8 Encoding Solution when Receiving Data by Making a GET Request Using Flutter – Dart

Tiempo de lectura: < 1 minuto Reading time: < 1 minute When making a GET request using Flutter and the Dart programming language, I encountered an error while trying to display certain data. The encoding error occurs when receiving information with some characters, and when displaying them in the user interface, they are not shown correctly. To fix the error shown ... Read more

Limiting RAM, CPU, or Disk Space for Docker Containers using Docker Compose

Limiting RAM, CPU, or Disk Space for Docker Containers using Docker Compose

Tiempo de lectura: 2 minutos Reading time: 3 minutes In Docker Compose, you can limit the RAM, disk space, and CPU usage of containers to prevent them from consuming excessive resources on the system. Here’s a tutorial on limiting RAM, disk space, and CPU usage in Docker Compose containers. Step 1: Create the docker-compose.yml file First, you need to create … Read more