Skip to content

Commit

Permalink
Update 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Manuel Medina committed Dec 19, 2024
1 parent 11248b2 commit 6e876b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pipelineIC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ jobs:
"https://sonarcloud.io/api/projects/create" \
-d "name=$REPO_NAME" \
-d "project=$REPO_NAME" \
-d "organization=devsecopsusach" \
-d "visibility=public")
if [ "$create_response" -ne 201 ]; then
echo "Proyecto creado exitosamente (HTTP $create_response)."
echo "¨Proyecto creado exitosamente (HTTP $create_response)."
fi
echo "Estableciendo la rama [feature-jm] [main] como predeterminada..."
echo "Estableciendo la rama main como predeterminada..."
curl -s -f -X POST -u "$TK_SONARCLOUD:" \
"https://sonarcloud.io/api/project_branches/rename" \
-d "name=feature-jm" \
Expand All @@ -92,7 +93,7 @@ jobs:
echo "Realizando análisis inicial en la rama main..."
./gradlew sonarqube \
-Dsonar.projectKey=$REPO_NAME \
#-Dsonar.organization=devsecopsusach \
-Dsonar.organization=devsecopsusach \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.token=$TK_SONARCLOUD \
-Dsonar.branch.name=main
Expand All @@ -108,7 +109,7 @@ jobs:
echo "Realizando análisis en la rama actual: $BRANCH_NAME..."
./gradlew sonarqube \
-Dsonar.projectKey=$REPO_NAME \
#-Dsonar.organization=devsecopsusach \
-Dsonar.organization=devsecopsusach \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.token=$TK_SONARCLOUD \
-Dsonar.branch.name=$BRANCH_NAME
Expand Down

0 comments on commit 6e876b6

Please sign in to comment.