Skip to content
Permalink
Browse files
Merge pull request #138 from aheritier/JENKINS-9791
[FIXED JENKINS-9791] : Improve the post deployment job to make a clear error if you disabled artifacts archives
  • Loading branch information
olamy committed May 30, 2011
2 parents 84a78d5 + be03ace commit c5d1b428812259d13f81703bf14fcbe6d5d7cf47
@@ -122,6 +122,14 @@ public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListene
return true;
}

if(build instanceof MavenModuleSetBuild && ((MavenModuleSetBuild)build).getParent().isArchivingDisabled()){
listener.getLogger().println("[ERROR] You cannot use the \"Deploy artifacts to Maven repository\" feature if you " +
"disabled " +
"automatic artifact archiving");
build.setResult(Result.FAILURE);
return true;
}

listener.getLogger().println("Deploying artifacts to "+url);
try {

@@ -13,4 +13,8 @@
Note that regardless of this configuration, you can always manually come back
to Jenkins and deploy any of the past artifacts to any repository of your choice,
after the fact.

<p>
<b>To use this feature you shouldn't deactivate the automatic artifact archiving.</b>
</p>
</div>
@@ -11,4 +11,9 @@
<p>
Hinweis: Unabhängig von dieser Einstellung können Sie aber auch jederzeit manuell
Artefakte aus durchgeführten Builds in beliebige Repositories ausbringen.

<p>
<b>To use this feature you shouldn't deactivate the automatic artifact archiving.</b>
</p>

</div>
@@ -13,4 +13,8 @@
Note that regardless of this configuration, you can always manually come back
to Jenkins and deploy any of the past artifacts to any repository of your choice,
after the fact.

<p>
<b>To use this feature you shouldn't deactivate the automatic artifact archiving.</b>
</p>
</div>
@@ -9,4 +9,8 @@

<p>
この設定を行っているかによらず、Jenkinsの画面からいつでも過去の成果物を任意のリポジトリにデプロイできます。

<p>
<b>To use this feature you shouldn't deactivate the automatic artifact archiving.</b>
</p>
</div>

0 comments on commit c5d1b42

Please sign in to comment.