Fixed typo. Added new jenkinsfile info
testing/ogcore-api/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/pr-main Build queued... Details

pull/50/head
Manuel Aranda Rosales 2025-09-03 10:45:48 +02:00
parent f03e350e48
commit efe4f601c4
3 changed files with 25 additions and 7 deletions

View File

@ -1,4 +1,12 @@
# Changelog
## [0.22.1] - 2025-09-03
### Fixed
- Se ha corregido un typo.
### Improved
- Se ha añadido nueva configuracion a Jenkinsfile para la ejecucion de los test automaticos.
---
## [0.22.0] - 2025-09-03
### Added
- Se han mejorado el control de errores respecto a ogRepository

View File

@ -98,8 +98,21 @@ pipeline {
}
}
post {
success {
script {
// Solo lanzar cuando el build sea exitoso y en la rama main
if (env.BRANCH_NAME == 'main') {
build job: 'Aptly publish nightly repository',
wait: false,
parameters: [
string(name: 'TRIGGERED_BY', value: "${env.JOB_NAME}-${env.BUILD_NUMBER}")
]
}
}
}
always {
notifyBuildStatus('narenas@qindel.com')
notifyBuildStatus('opengnsys@qindel.com')
}
}
}

View File

@ -6,12 +6,8 @@ namespace App\Controller;
use ApiPlatform\Validator\ValidatorInterface;
use App\Dto\Input\DeployImageInput;
use App\Entity\Command;
use App\Entity\Image;
use App\Model\ClientStatus;
use App\Model\ImageStatus;
use App\Entity\ImageImageRepository;
use App\Entity\OrganizationalUnit;
use App\Entity\Partition;
use App\Model\CommandTypes;
use App\Model\DeployMethodTypes;
use App\Model\TraceStatus;
@ -25,6 +21,7 @@ use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
class DeployImageAction extends AbstractController
{
@ -46,7 +43,7 @@ class DeployImageAction extends AbstractController
public function __invoke(DeployImageInput $input, ImageImageRepository $image): JsonResponse
{
if ($image->getStatus() !== ImageStatus::SUCCESS) {
return new BadRequestHttpException('Image is not ready to be deployed');
throw new BadRequestHttpException('Image is not ready to be deployed');
}
$this->validator->validate($input);