Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
wip: test multi-arch angular build
Browse files Browse the repository at this point in the history
  • Loading branch information
cleong14 committed Jul 18, 2024
1 parent ae72a38 commit 4cb3bc6
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions angular-ui/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@ pipeline {
string(name: 'platform', defaultValue: 'linux/amd64', description: 'A comma separated list of platforms to build the container image for (e.g., linux/amd64,linux/arm64).')
}

agent none
agent {
kubernetes {
yaml """
apiVersion: v1
kind: Pod
spec:
restartPolicy: Never
containers:
- name: build
image: artifactory.cloud.cms.gov/docker/library/node:18-alpine
imagePullPolicy: Always
command: ['tail', '-f', '/dev/null']
"""
}
}

stages {
stage('Build linux/arm64 Image') {
Expand Down Expand Up @@ -69,7 +83,6 @@ pipeline {
}

stage('Test') {
agent any
parallel {
stage('Unit Test') {
steps {
Expand Down Expand Up @@ -111,7 +124,6 @@ pipeline {
}

stage('Delivery') {
agent any
steps {
build(job: 'Angular UI Delivery', wait: true, propagate: true, parameters: [
string(name: 'tag', value: "${GIT_COMMIT[0..7]}"),
Expand Down

0 comments on commit 4cb3bc6

Please sign in to comment.