Fix: PVC already created in shared resource step
parent
d3a99ff1b3
commit
606fdc048f
|
|
@ -1318,7 +1318,6 @@ class Kubernetes {
|
|||
this.secretName = `build-credentials-${buildId}`;
|
||||
this.jobName = `unity-builder-job-${buildId}`;
|
||||
yield kubernetes_secret_1.default.createSecret(secrets, this.secretName, this.namespace, this.kubeClient);
|
||||
yield kubernetes_storage_1.default.createPersistentVolumeClaim(this.buildParameters, this.pvcName, this.kubeClient, this.namespace);
|
||||
const jobSpec = this.getJobSpec(commands, image, mountdir, workingdir, environment);
|
||||
//run
|
||||
core.info('Creating build job');
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -64,12 +64,6 @@ class Kubernetes implements RemoteBuilderProviderInterface {
|
|||
this.secretName = `build-credentials-${buildId}`;
|
||||
this.jobName = `unity-builder-job-${buildId}`;
|
||||
await KubernetesSecret.createSecret(secrets, this.secretName, this.namespace, this.kubeClient);
|
||||
await KubernetesStorage.createPersistentVolumeClaim(
|
||||
this.buildParameters,
|
||||
this.pvcName,
|
||||
this.kubeClient,
|
||||
this.namespace,
|
||||
);
|
||||
const jobSpec = this.getJobSpec(commands, image, mountdir, workingdir, environment);
|
||||
|
||||
//run
|
||||
|
|
|
|||
Loading…
Reference in New Issue