This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6.2-alpine3.6 | |
WORKDIR /opt/tools/icestorm | |
RUN apk add --no-cache \ | |
bash \ | |
build-base \ | |
libftdi1-dev \ | |
linux-headers \ | |
musl-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifeq ($(VERILATOR_ROOT),) | |
$(error VERILATOR_ROOT is not set. Please set it.) | |
else | |
ifeq ($(wildcard $(VERILATOR_ROOT)/expected_file),) | |
$(error VERILATOR_ROOT is set to $(VERILATOR_ROOT) but not finding expected_file in there.) | |
endif | |
endif | |
all: | |
echo Done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This snippet causes a java.io.NotSerializableException: sun.nio.fs.UnixPath | |
// Not sure why because I use @NonCPS | |
import java.nio.file.Path | |
import java.nio.file.Paths | |
import java.nio.file.Files | |
Path gradlePropertiesPath = Paths.get('/localdisk/jenkins/gradle/gradle.properties') | |
node() { | |
symlinkFile(gradlePropertiesPath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sending build context to Docker daemon 203.8 kB | |
Step 1/4 : FROM python:3.6 | |
---> 775dae9b960e | |
Step 2/4 : WORKDIR /tmp/app | |
---> 0a50baeafe90 | |
Removing intermediate container 06d9206a8888 | |
Step 3/4 : COPY requirements.txt requirements.txt | |
---> b8ee42a4b0f8 | |
Removing intermediate container 3ef5cc0e069a | |
Step 4/4 : RUN python -m venv /tmp/venv && . /tmp/venv/bin/activate && pip install -r requirements.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python@sha256:d7728edb9e52abc58552cec26d871f474394f3ffdefbe2929da93bfa42d92b1f | |
# Where the project files will be installed and tested inside the container | |
WORKDIR /usr/local/plowapp | |
# Copy the project files to the WORKDIR | |
COPY . . | |
# The python version in the container is owned by the OS of the container | |
# We need to isolate our project from the OS requirements by installing the virtualenv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To reproduce the bug: | |
// mkdir -p src/main/apple | |
// echo "red" >src/main/apple/pomme.txt | |
// gradle juicerJuicer | |
@Managed interface JuiceComponent extends GeneralComponentSpec { } | |
@Managed interface FruitLanguage extends LanguageSourceSet {} | |
@Managed | |
interface JuiceBinarySpec extends BinarySpec { | |
File getOutputDir() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gradle --daemon copyDeps --stacktrace | |
:copyDeps | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Could not resolve all dependencies for configuration ':compile'. | |
> java.lang.NullPointerException (no error message) | |
* Try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Managed interface JuiceComponent extends GeneralComponentSpec { } | |
@Managed interface FruitLanguage extends LanguageSourceSet {} | |
@Managed | |
interface JuiceBinarySpec extends BinarySpec { | |
List<String> getArgs() | |
void setArgs(List<String> args) | |
} | |
class JuicerTask extends SourceTask { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Managed | |
interface FruitBinarySpec extends BinarySpec { | |
List<String> getFruits() | |
void setFruits(List<String> fruits) | |
} | |
class FruitTask extends SourceTask { | |
@Input | |
List<String> fruits |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jenkins Pipeline DSL to demonstrate git merge before build | |
node { | |
String path = '/tmp/jenkins/upstream-repo' | |
sh "rm -rf ${path}" | |
ws(path) { | |
sh 'git --version' | |
sh 'git init' | |
sh 'touch README.md; git add README.md; git commit -m "init"' | |
sh 'git checkout -b pull-requests/1/from' | |
sh 'touch file.txt; git add file.txt; git commit -m "Add file"' |