Jenkins 1.452 لا تشجع البناء بسبب خطأ أرشفة / بصمات الأصابع
-
15-11-2019 - |
سؤال
أنا أقوم بإعداد Jenkins 1.452 مع تعزيز البرنامج المساعد بناء للترويج للبناء. لدي مسار الترويج بسيطة جدا 2 خطوة الآن.
- ترجمة وتثبيت (يخلق جرة)
- uat نشر (يدفع جرة إلى خادم التطبيق الخاص بي)
لدي هذا مكسور إلى 2 وظيفة، وكلاهما يتم تشغيله بنجاح بمفرده - ولكن عندما أحاول إعداد عملية الترويج أنا الخطأ التالي: giveacodicetagpre.
أنا أرفق قبعات الشاشة من التكوين عن وظيفة (ترجمة).
لدي إعداد بصمات الأصابع والأرشفة، ويمكنني حتى أن أرى قائمة التحف التي تظهر بصماتها المدرجة في وحدة التحكم.
href="https://img.skitch.com/20120302-kphmm1rk3fbb3ni68mxjusbuwwb.png" rel="nofollow"> UAT Build عرض مؤرشفة Artifact W بصمة
المحلول
Some recommendations I would suggest:
Do NOT archive and fingerprint in a promotion process. A promotion process is really a separate job and a separate build. Instead, you should archive and fingerprint the files in the Compile job's Post-build Actions. The compile job has to be the origin of the fingerprint for the promotion process to work robustly.
In the Deploy job, somehow get the same file that was fingerprinted in the Compile job and also fingerprint it in the Deploy job.
I can't see how the Deploy job is getting the jar file. I would recommend using the Copy Artifact plugin that uses parameters - specifically a build number or perhaps the upstream-build - to retrieve the same file.