diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e378134 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,57 @@ +# Changelog + +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.6.1] - 2025-02-25 + +### Fixed +- Arreglos menores + +## [0.6.1] - 2025-02-25 + +### Fixed +- Arreglos menores + +## [0.6.0] - 2025-02-25 + +### Changed +- No hay cambios en esta versión, se incrementa el tag de `0.5.12` a `0.6.0`. + +## [0.5.12] - 2025-02-25 + +### Added +- Monta `efivars` al inicio del arranque del `oglive`. + +### Fixed +- Corrige un error en un `awk` al obtener entradas NVRAM. +- Devuelve un array vacío cuando no hay `oglives` instalados. +- Devuelve una excepción cuando se intenta instalar un `Oglive` ya instalado. + +## [0.5.11] - 2025-02-06 + +### Changed +- Permite la lectura de otros usuarios en el home `/opt/opengnsys` del usuario `opengnsys`. + +## [0.5.10] - 2025-02-06 + +### Changed +- Cambia el home del usuario `opengnsys` a `/opt/opengnsys`. + +## [0.5.9] - 2025-02-03 + +### Added +- Añade el puerto `8443` de `ogcore` al `PostConf.lib`. + +## [0.5.8] - 2025-01-13 + +### Fixed +- Arregla un bug que no añadía los parámetros `ogcore` y `oglog` al crear los ficheros de arranque. + +## [0.5.7] - 2025-01-13 + +### Added +- Añade logs para todos los endpoints siguiendo un formato JSON preestablecido. + +### Changed +- Actualiza `monolog.yaml` para enviar logs al `journal` de la máquina. \ No newline at end of file diff --git a/Jenkins/Jenkinsfile-deb-pkg b/Jenkins/Jenkinsfile-deb-pkg new file mode 100644 index 0000000..4e802b7 --- /dev/null +++ b/Jenkins/Jenkinsfile-deb-pkg @@ -0,0 +1,77 @@ +@Library('jenkins-shared-library') _ +pipeline { + agent { + label 'jenkins-slave' + } + environment { + DEBIAN_FRONTEND = 'noninteractive' + DEFAULT_DEV_NAME = 'Opengnsys Team' + DEFAULT_DEV_EMAIL = 'opengnsys@qindel.com' + } + options { + skipDefaultCheckout() + } + parameters { + string(name: 'DEV_NAME', defaultValue: '', description: 'Nombre del desarrollador') + string(name: 'DEV_EMAIL', defaultValue: '', description: 'Email del desarrollador') + } + stages { + stage('Prepare Workspace') { + steps { + script { + env.BUILD_DIR = "${WORKSPACE}/ogboot" + sh "mkdir -p ${env.BUILD_DIR}" + } + } + } + + stage('Checkout') { + steps { + dir("${env.BUILD_DIR}") { + checkout scm + } + } + } + + stage('Generate Changelog') { + when { + expression { + return env.TAG_NAME != null + } + } + steps { + script { + def devName = params.DEV_NAME ? params.DEV_NAME : env.DEFAULT_DEV_NAME + def devEmail = params.DEV_EMAIL ? params.DEV_EMAIL : env.DEFAULT_DEV_EMAIL + + generateDebianChangelog(env.BUILD_DIR, devName, devEmail) + } + } + } + + stage('Build') { + steps { + dir("${env.BUILD_DIR}") { + sh ''' + dpkg-buildpackage -us -uc + mkdir -p ../artifacts && mv ../*.deb ../*.changes ../*.buildinfo ../artifacts/ + ssh aptly@172.17.8.68 "rm -rf /var/tmp/opengnsys/debian-repo && mkdir -p /var/tmp/opengnsys/debian-repo" + scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/ + ''' + } + } + } + } + post { + always { + notifyBuildStatus('narenas@qindel.com') + } + } +} +// stage ('Publish to Debian Repository') { +// agent { label 'debian-repo' } +// steps { +// sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb" +// } +// } + diff --git a/debian/rules b/debian/rules index f9c45e9..f484c3c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,24 +1,5 @@ #!/usr/bin/make -f -# See debhelper(7) (uncomment to enable). -# Output every command that modifies files on the build system. -#export DH_VERBOSE = 1 - - -# See FEATURE AREAS in dpkg-buildflags(1). -#export DEB_BUILD_MAINT_OPTIONS = hardening=+all - -# See ENVIRONMENT in dpkg-buildflags(1). -# Package maintainers to append CFLAGS. -#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -# Package maintainers to append LDFLAGS. -#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed - - -%: - dh $@ - - %: dh $@ @@ -28,12 +9,8 @@ override_dh_auto_build: export APP_ENV=prod dh_auto_build rm -rf var/cache/* - composer install --no-dev --no-interaction --no-progress --optimize-autoloader + mkdir -p public + composer install --no-interaction --no-progress --optimize-autoloader composer dump-env prod composer update doctrine/dbal -# dh_make generated override targets. -# This is an example for Cmake (see ). -#override_dh_auto_configure: -# dh_auto_configure -- \ -# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)