Skip to content

Commit

Permalink
Add official build yml and public build yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kamperiadis committed Jul 9, 2024
1 parent e902a7f commit 037002a
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 236 deletions.
73 changes: 0 additions & 73 deletions .github/workflows/codeql.yaml

This file was deleted.

163 changes: 0 additions & 163 deletions ado-codeql.yml

This file was deleted.

49 changes: 49 additions & 0 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
schedules:
- cron: "30 22 * * 2"
displayName: Nightly Build
branches:
include:
- master
always: true

trigger:
batch: true
branches:
include:
- master
- releases/*

pr: none

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: eng
type: git
name: engineering
ref: refs/tags/release

variables:
- template: ci/variables/build.yml@eng
- template: ci/variables/cfs.yml@eng

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc
image: 1es-windows-2022
os: windows

sdl:
codeql:
runSourceLanguagesInSourceAnalysis: true

stages:
- stage: Build

jobs:
- template: /eng/ci/templates/jobs/build.yml@self
47 changes: 47 additions & 0 deletions eng/ci/public-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
schedules:
- cron: "30 22 * * 2"
displayName: Nightly Build
branches:
include:
- master
always: true

trigger:
batch: true
branches:
include:
- master

pr:
branches:
include:
- master

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc-public
image: 1es-windows-2022
os: windows

sdl:
codeql:
compiled:
enabled: true
runSourceLanguagesInSourceAnalysis: true

stages:
- stage: Build

jobs:
- template: /eng/ci/templates/jobs/build.yml@self
parameters:
pool: '1es-pool-azfunc-public'
53 changes: 53 additions & 0 deletions eng/ci/templates/jobs/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
parameters:
- name: pool
type: string
default: '1es-pool-azfunc'

jobs:
- job: Build
displayName: 'Build'

pool:
name: ${{ parameters.pool }}
image: 1es-ubuntu-22.04
os: linux

variables:
NODE_VERSION: '20.x'

steps:
- checkout: self

- task: UseNode@1
inputs:
version: ${{ variables.NODE_VERSION }}
displayName: 'Setup Node'

- task: Npm@1
inputs:
command: 'install'
displayName: 'Install dependencies'

- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run build'
displayName: 'Build'

- bash: |
cd ./tests/e2e/java8
mvn clean package
mvn azure-functions:package
displayName: 'Build project for java language'
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.x

- pwsh: |
cd ./tests/e2e/dotnet3
dotnet --version
dotnet build
displayName: 'Build project for csharp language'

0 comments on commit 037002a

Please sign in to comment.