嗨,我正在研究AWS cdk。我正在将其与Jenkins Pipeline集成。下面是我的管道。
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding',credentialsId: "${env.PROJECT_ID}-aws-${env.ENVironMENT}"]]) {
docker.image("${ECR_HOST}/sharedtools/cdk:latest").inside {
sh "./scripts/build.sh"
}
}
我在这里使用最新的cdk图像。
下面是我的命令。
python3 -m venv .env && \
source .env/bin/activate && \
pip3 install aws-cdk.cdk==0.36.1
pip3 install aws-cdk.core
cdk synth
运行cdk合成器时,出现以下错误。
Installing collected packages: my-setup
Found existing installation: my-setup 0.0.1
Uninstalling my-setup-0.0.1:
Successfully uninstalled my-setup-0.0.1
Running setup.py develop for my-setup
Successfully installed my-setup
+ cdk synth
cdk CLI >= 1.16.0 is required to interact with this app
有人可以帮助我解决此问题吗?任何帮助将不胜感激。谢谢