Skip to content

Commit b698ab8

Browse files
author
临寒
committed
add default arguments for xcodebuild and scan-build
to make plugin usable out of box
1 parent ee3b6de commit b698ab8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/main/resources/jenkins/plugins/clangscanbuild/ClangScanBuildBuilder/config.jelly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
</f:entry>
3636

3737
<f:entry title="Additional scan-build arguments" field="scanbuildargs">
38-
<f:textbox default="" />
38+
<f:textbox default="--use-analyzer Xcode" />
3939
</f:entry>
4040

4141
<f:entry title="Additional xcode build arguments" field="xcodebuildargs">
42-
<f:textbox default="" />
42+
<f:textbox default="-derivedDataPath $WORKSPACE/build" />
4343
</f:entry>
4444

4545
</f:advanced>
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
This field can be used to pass additional arguments to clang scan-build. The arguments will appear before the xcodebuild sub command.
2-
You can view the assembled command by viewing the job's build console.
2+
You can view the assembled command by viewing the job's build console.
3+
<br/><br/>
4+
scan-build uses the 'clang' executable relative to itself for static analysis by default.
5+
<br/>
6+
<i><b>--use-analyzer Xcode</b></i> using the 'clang' packaged with Xcode (on OS X)
7+
<br/>
8+
<i><b>--use-analyzer [path to clang]</b></i> to use the 'clang' from <i>'path to clang'</i> or <i>$PATH</i> if no path specified.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
This field can be used to pass additional arguments to clang scan-build. The arguments will appear after the xcodebuild sub command.
2-
You can view the assembled command by viewing the job's build console.
2+
You can view the assembled command by viewing the job's build console.
3+
<br/><br/>
4+
<i><b>-derivedDataPath $WORKSPACE/build</b></i> is to save build products and other derived data to <i>build</i> directory under current workspace

0 commit comments

Comments
 (0)