Skip to content

Conversation

olegz-codefresh
Copy link
Contributor

No description provided.

Copy link
Contributor

@itai-codefresh itai-codefresh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need the shadow

throw new CFError({
message: `Passed pipeline id: ${pipelineName} does not exist`,
});
const shadowRunning = userYamlDescriptor && !pipelineName;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why to handle this as an error? lets handle this as a normal flow

const { debug, skip, only, trigger, cpu, memory, branch, sha, disk } = this.argv;
const {
debug, skip, only, trigger, cpu, memory, branch, sha, disk, shadowRunning,
} = this.argv;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need the shadowRunning flag.
in case not passing pipeline name backend and cli should validated that the yaml file descriptor was passed, if not will throw an error

@olegz-codefresh olegz-codefresh merged commit 5b95fa0 into master Jan 21, 2020
@olegz-codefresh olegz-codefresh deleted the feature/olegz/SAAS-5027-running-pipeline-only-with-yaml branch January 21, 2020 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants