diff --git a/jenkinsfile_script_3.6.2_data_bind_anxinproject_local b/jenkinsfile_script_3.6.2_data_bind_anxinproject_local index 2c834d6..ef71537 100644 --- a/jenkinsfile_script_3.6.2_data_bind_anxinproject_local +++ b/jenkinsfile_script_3.6.2_data_bind_anxinproject_local @@ -3,17 +3,17 @@ podTemplate { env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${IOT}/${JOB_NAME}" env.IMAGE_NAME_SHORT = "${IOT}/${JOB_NAME}" - env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/Inspection.git" + env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/OperationalService.git" stage('Run shell') { - git branch: 'master', credentialsId: 'gitea-builder', url: "${CODE_ADDR}" + git branch: 'dev', credentialsId: 'gitea-builder', url: "${CODE_ADDR}" container('image-builder') { sh''' pwd ls -al - /kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./script/2.0.0/data/1_reset_project_bind_point/Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup + /kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./script/3.6.2/data/1_bing_anxinproject_local/Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup ''' } diff --git a/script/3.6.2/data/1_bing_anxinproject_local/Dockerfile b/script/3.6.2/data/1_bing_anxinproject_local/Dockerfile index 046f4f8..3758936 100644 --- a/script/3.6.2/data/1_bing_anxinproject_local/Dockerfile +++ b/script/3.6.2/data/1_bing_anxinproject_local/Dockerfile @@ -1,6 +1,6 @@ FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 -COPY . /var/app +COPY ./script/3.6.2/data/1_bing_anxinproject_local/ /var/app WORKDIR /var/app diff --git a/script/3.6.2/data/1_bing_anxinproject_local/index.js b/script/3.6.2/data/1_bing_anxinproject_local/index.js index acf6499..7b883d5 100644 --- a/script/3.6.2/data/1_bing_anxinproject_local/index.js +++ b/script/3.6.2/data/1_bing_anxinproject_local/index.js @@ -7,17 +7,17 @@ try { // ! 这里是安心云 const anxinyunPool = new Pool({ user: 'postgres', - host: '10.8.30.166', - database: 'Anxinyun0726', - password: '123', + host: '10.8.40.210', + database: 'AnxinCloud', + password: 'postgres', port: 5432, }) // 这里是运维平台 const pomsPool = new Pool({ - user: 'postgres', - host: '10.8.30.32', - database: 'poms_231026_backup', - password: '123', + user: 'POMSAdmin', + host: '10.8.40.223', + database: 'pomstest', + password: 'POMSAdmin_123', port: 5432, })