bcgov / nr-spar-data-sync

Engine to sync data for SPAR application (from Postgres to Oracle)
Apache License 2.0
2 stars 0 forks source link

Convert Jenkins file from Windows Batch to Linux sh/bash #27

Closed marcionemec-daitan closed 9 months ago

marcionemec-daitan commented 10 months ago

Situation:

While trying to build/deploy the Vault issue solution (see bcgov/nr-spar-data#47 issue), Jenkins Cron server raised error trying to connect in github.com. This error is impeditive to deploy the pipeline of the project.

Asking to 1Team for a guidance, the team suggested us to use the Jenkins [Polaris server:](Polaris Jenkins: https://apps.nrs.gov.bc.ca/int/confluence/display/1TEAM/Polaris+Jenkins)

Background:

Jenkins Cron is based in a Windows System, so, Jenkins file pipeline configuration uses the "Windows batch" command. But Jenkins Polaris is based in a Linux system, so pipeline configuration needs to be handled using sh/bash commands.

Analysis:

Rewrite Pipeline code in Jenkins_Cron jenkins file to a new linux-based Jenkins file Jenkins_Polaris.

craigyu commented 10 months ago

rolled over from Sprint 24

marcionemec-daitan commented 9 months ago

Issue solved:

See: https://cd.io.nrs.gov.bc.ca/job/spar/job/DataSyncEngine/12/console for more details.

marcionemec-daitan commented 9 months ago

Solved. Documentation will be handled in bcgov/nr-spar-data-sync#26 issue