Jenkins 1.452 لا تشجع البناء بسبب خطأ أرشفة / بصمات الأصابع

StackOverflow https://stackoverflow.com/questions/9527589

سؤال

أنا أقوم بإعداد Jenkins 1.452 مع تعزيز البرنامج المساعد بناء للترويج للبناء. لدي مسار الترويج بسيطة جدا 2 خطوة الآن.

  1. ترجمة وتثبيت (يخلق جرة)
  2. uat نشر (يدفع جرة إلى خادم التطبيق الخاص بي)

    لدي هذا مكسور إلى 2 وظيفة، وكلاهما يتم تشغيله بنجاح بمفرده - ولكن عندما أحاول إعداد عملية الترويج أنا الخطأ التالي: giveacodicetagpre.

    أنا أرفق قبعات الشاشة من التكوين عن وظيفة (ترجمة).

    لدي إعداد بصمات الأصابع والأرشفة، ويمكنني حتى أن أرى قائمة التحف التي تظهر بصماتها المدرجة في وحدة التحكم.

    ترجمة لقطة شاشة بناء

    href="https://img.skitch.com/20120302-kphmm1rk3fbb3ni68mxjusbuwwb.png" rel="nofollow"> UAT Build عرض مؤرشفة Artifact W بصمة

    re="nofollow"> udy

هل كانت مفيدة؟

المحلول

Some recommendations I would suggest:

  1. 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.

  2. In the Deploy job, somehow get the same file that was fingerprinted in the Compile job and also fingerprint it in the Deploy job.

  3. 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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top