Skip to content

Instantly share code, notes, and snippets.

@k4m4r82
Created August 30, 2017 02:46
Show Gist options
  • Save k4m4r82/f88e4bb02eb8ade0d9d049a07ec6ee30 to your computer and use it in GitHub Desktop.
Save k4m4r82/f88e4bb02eb8ade0d9d049a07ec6ee30 to your computer and use it in GitHub Desktop.
variables:
MsBuildPath: "C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\MSBuild.exe"
NugetPath: "C:\\GitLab-Runner\\NuGet\\nuget.exe"
SolutionName: "Northwind.sln"
stages: # tipe dari job
- restore # stage untuk merestore paket nuget
- build # stage untuk proses build
cache:
untracked: true
paths:
- lib # folder hasil restore nuget package
restore_nuget_package: # job 1
stage: restore
script:
- echo "Sedang merestore paket nuget untuk %SolutionName%..."
- '"%NugetPath%" restore "src\%SolutionName%"'
build_solution: # job 2
stage: build
script:
- echo "Sedang melakukan proses build untuk %SolutionName%..."
- '"%MsBuildPath%" "src\%SolutionName%"'
only:
- master # validasi untuk branch atau tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment