瀏覽代碼

Remove --no-cache from build, syntax errors in entrypoint

Vadim Surkov 6 年之前
父節點
當前提交
dbf15dc276
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      Jenkinsfile
  2. 2 2
      entrypoint.ps1

+ 1 - 1
Jenkinsfile

@@ -24,7 +24,7 @@ pipeline {
           Set-PSDebug -Trace 1
           svn.exe checkout svn://192.168.21.250/programs/trunk/Services/Analis/Win64 Infoclinica --username public --password "sds#7753435"
           move-Item -Path .\\Infoclinica\\.svn -Destination ..\\svn
-          docker build --no-cache -t analis-service:${BUILD_NUMBER} .
+          docker build -t analis-service:${BUILD_NUMBER} .
           move-Item -Path ..\\svn -Destination .\\Infoclinica\\.svn
         """
       }

+ 2 - 2
entrypoint.ps1

@@ -13,7 +13,7 @@ if (!$env:filespath) {
     exit 1
 }
 
-if ( test-path("C:\ProgramData\Docker\secrets\shares.username") -And test-path("C:\ProgramData\Docker\secrets\shares.passwd") ){
+if ( (test-path("C:\ProgramData\Docker\secrets\shares.username")) -And (test-path("C:\ProgramData\Docker\secrets\shares.passwd")) ){
     $sh_username=Get-Content -path "C:\ProgramData\Docker\secrets\shares.username"
     $sh_passwd=Get-Content -path "C:\ProgramData\Docker\secrets\shares.passwd"
     New-SmbMapping -RemotePath $env:logpath -UserName $sh_username -Password $sh_passwd
@@ -27,7 +27,7 @@ else {
 new-item -ItemType SymbolicLink -path C:\Services\Analis -Name Log -value $env:logshare -Force
 new-item -ItemType SymbolicLink -path $env:filespath -Name Files -value $env:filesshare -Force
 
-if ( !test-path("C:\Services\Analis\analis.conf") ){
+if ( -Not (test-path("C:\Services\Analis\analis.conf")) ){
     move-item -path C:\Services\Analis\analis-default.conf -destination C:\Services\Analis\analis.conf
 }