question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Check if bootWar/war tasks are enabled

See original GitHub issue

Environment:

  • Jib version: 1.7.0
  • Build tool: gradle 5.2.1
  • OS: linux

Description of the issue: When a project enables the war task but disables the bootWar task, Jib incorrectly chooses the bootWar task to depend on, instead of the war task.

Expected behavior: Jib should depend on enabled tasks only.

Steps to reproduce:

  1. apply plugins ‘org.springframework.boot’ and jib
  2. set bootWar { enabled = false } and war { enabled = true } in build.gradle
  3. gradle jib

Log output:

Additional Information: https://github.com/GoogleContainerTools/jib/blob/4d8efc902d40945fe5ed296d3bf55f0d42119fef/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibPlugin.java#L167

https://github.com/GoogleContainerTools/jib/blob/4d8efc902d40945fe5ed296d3bf55f0d42119fef/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/TaskCommon.java#L49

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chanseokohcommented, Oct 28, 2019

Ah, yeah, haven’t thought about it. I think it can be the best compromise. That is, we configure Jib runs to depend on both war and bootWar tasks if they are available.

0reactions
chanseokohcommented, Nov 15, 2019

@mattysweeps we just released 1.8.0 with the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Programmatically figure out if specific task in Task Scheduler ...
You can query the Windows Task data via WMI. I don't think SQL is the best answer to this ... You can check...
Read more >
Enable or Disable Scheduled Task in Windows 10 - Winaero
Here's how to enable or disable Scheduled Task in Windows 10. This can be helpful when you are troubleshooting some issue with the...
Read more >
How to detect if a specific scheduled task is running?
Using plain MSDOS, you can do: schtasks /query /TN my-task-name /FO LIST. And extract the output. As an example I do:
Read more >
How to audit Windows Task Scheduler for cyber-attack activity
Then right-click "Security log”, and then on “Properties”. Make sure the "Enable logging" check box is selected and increase the log size to...
Read more >
How to enable, view, and clear Task Scheduler History in ...
Task Scheduler, the built-in utility from Microsoft lets you schedule any task to initiate automatically. For example, you can create a task ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found