No revision URL or commit hash resolved
desoss opened this issue · 0 comments
desoss commented
Is there anything I should do to stop receiving the error No revision URL or commit hash resolved
?
This is my pipeline:
import {CodeBuildAction, GitHubSourceAction, GitHubTrigger, S3DeployAction} from "aws-cdk-lib/aws-codepipeline-actions";
....
const pipelineActions =
{
source: new GitHubSourceAction({
actionName: 'Github',
owner: repoProps.owner,
repo: repoProps.name,
branch: repoProps.branch || "master",
oauthToken: secret.secretValue,
output: artifacts.source,
trigger: GitHubTrigger.WEBHOOK,
}),
build: new CodeBuildAction({
actionName: 'CodeBuild',
project,
input: artifacts.source,
outputs: [artifacts.build],
}),
deploy: new S3DeployAction({
actionName: 'S3Deploy',
bucket: props.bucket,
input: artifacts.build,
}),
invalidate: new CodeBuildAction(
{
actionName: 'InvalidateCache',
project: this.getProjectForInvalidateCloudFront(props.domain, props.distribution),
input: artifacts.build,
}
)
};
const pipeline = new Pipeline(this, formatDomain(props.domain) + '-pipeline', {
pipelineName: `pipeline`,
stages: [
{stageName: 'Source', actions: [pipelineActions.source]},
{stageName: 'Build', actions: [pipelineActions.build]},
{stageName: 'Deploy', actions: [pipelineActions.deploy]},
{stageName: 'InvalidateCache', actions: [pipelineActions.invalidate]},
],
});